-
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign Windows binaries with Azure Trusted Signing.
Signed-off-by: Anders Kaseorg <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
); | ||
}; |