Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopiraccini committed Dec 5, 2023
1 parent 002cbdd commit 55d6b65
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sign-win.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const { spawnSync } = require('child_process')
// because we want to use the DigiCert signing tool to sign the executable.
// See also: https://docs.digicert.com/en/digicert-keylocker/sign-with-digicert-signing-tools/sign-with-smctl.html
exports.default = async function (configuration) {

console.log('Signing: ', configuration.path)
const execPath = configuration.path

Expand All @@ -16,13 +15,13 @@ exports.default = async function (configuration) {
process.env.DIGICERT_FINGERPRINT,
'--input',
execPath
], { encoding: 'utf-8' })
], { encoding: 'utf-8' })

if (child.error) {
console.error('Signing failed:', child.error)
throw new Error(child.error)
}

console.log(child.stdout)

// `smctl` returns exit code 0 even if the signing fails :(. )
Expand All @@ -33,4 +32,4 @@ exports.default = async function (configuration) {
throw new Error(child.stdout)
}
console.log('Signed ', configuration.path)
}
}

0 comments on commit 55d6b65

Please sign in to comment.