mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-20 14:38:26 +00:00
Sign Windows binaries with Azure Trusted Signing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -120,7 +120,11 @@
|
||||
}
|
||||
],
|
||||
"icon": "build/icon.ico",
|
||||
"publisherName": "Kandra Labs, Inc."
|
||||
"publisherName": "Kandra Labs, Inc.",
|
||||
"sign": "./scripts/win-sign.js",
|
||||
"signingHashAlgorithms": [
|
||||
"sha256"
|
||||
]
|
||||
},
|
||||
"msi": {
|
||||
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
||||
@@ -308,6 +312,7 @@
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"scripts/win-sign.js",
|
||||
"tests/**/*.js"
|
||||
],
|
||||
"parserOptions": {
|
||||
|
||||
20
scripts/win-sign.js
Normal file
20
scripts/win-sign.js
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
const childProcess = require("node:child_process");
|
||||
const {promisify} = require("node:util");
|
||||
|
||||
const exec = promisify(childProcess.exec);
|
||||
|
||||
exports.default = async ({path, hash}) => {
|
||||
await exec(
|
||||
`powershell.exe Invoke-TrustedSigning \
|
||||
-Endpoint https://eus.codesigning.azure.net/ \
|
||||
-CodeSigningAccountName kandralabs \
|
||||
-CertificateProfileName kandralabs \
|
||||
-Files '${path}' \
|
||||
-FileDigest '${hash}' \
|
||||
-TimestampRfc3161 http://timestamp.acs.microsoft.com \
|
||||
-TimestampDigest '${hash}'`,
|
||||
{stdio: "inherit"},
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user