desktop: set signing has to sha256

This commit is contained in:
Abdullah Atta
2024-01-29 23:17:22 +05:00
committed by Abdullah Atta
parent fb973a5514
commit 9dac4cf7f4
2 changed files with 3 additions and 4 deletions

View File

@@ -135,6 +135,7 @@
] ]
} }
], ],
"signingHashAlgorithms": "sha256",
"sign": "./sign.js", "sign": "./sign.js",
"icon": "assets/icons/app.ico" "icon": "assets/icons/app.ico"
}, },

View File

@@ -24,9 +24,9 @@ module.exports = async function (configuration) {
const Endpoint = "https://weu.codesigning.azure.net"; const Endpoint = "https://weu.codesigning.azure.net";
const CodeSigningAccountName = "Notesnook"; const CodeSigningAccountName = "Notesnook";
const CertificateProfileName = "Notesnook"; const CertificateProfileName = "Notesnook";
const FileDigest = "SHA256"; const FileDigest = configuration.hash.toUpperCase();
const TimestampRfc3161 = "http://timestamp.acs.microsoft.com"; const TimestampRfc3161 = "http://timestamp.acs.microsoft.com";
const TimestampDigest = "SHA256"; const TimestampDigest = configuration.hash.toUpperCase();
const Description = "The Notesnook app"; const Description = "The Notesnook app";
const DescriptionUrl = "https://notesnook.com/"; const DescriptionUrl = "https://notesnook.com/";
const FilesCatalog = createCatalog(configuration.path); const FilesCatalog = createCatalog(configuration.path);
@@ -35,8 +35,6 @@ module.exports = async function (configuration) {
console.debug("Signing", configuration.path, "using command", command); console.debug("Signing", configuration.path, "using command", command);
console.debug("Catalog", readFileSync(FilesCatalog, "utf-8"));
psexec(command); psexec(command);
console.debug("Signed", configuration.path); console.debug("Signed", configuration.path);