Skip to content

Commit

Permalink
test with win gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopiraccini committed Dec 3, 2023
1 parent c2dcb7c commit 68dc037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sign-win/sign-win.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.default = async function (configuration) {
const { execa } = await import('execa')
console.log('@@ Signing for windows', configuration.path)
const execPath = configuration.path
const { all, exitCode } = await execa('smctl', [
const { stdout, exitCode } = await execa('smctl', [
'sign',
'--fingerprint',
'f5f3e92cc99cc0169228d81ef65ba16ea680fe0a',
Expand All @@ -17,7 +17,7 @@ exports.default = async function (configuration) {
// `smctl` returns exit code 0 even if the signing fails :(. )
// So we need to check the output for errors.
// See also: https://docs.digicert.com/en/digicert-keylocker/sign-with-digicert-signing-tools/sign-with-smctl.html
if (all.includes('FAILED')) {
if (stdout.includes('FAILED')) {
console.error('Signing failed:', all, exitCode)
throw new Error(stdout)
}
Expand Down

0 comments on commit 68dc037

Please sign in to comment.