Skip to content

Commit

Permalink
Update build-windows.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 24, 2024
1 parent 0b37332 commit 2221e23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-windows.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ builder({
console.log('Signing', configuration)
if (configuration.path) {
try {
execSync(
const out = execSync(
`smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`, {
stdio: 'inherit'
}
)
if (out.toString().includes('FAILED')) {
throw new Error(out.toString())
}
} catch (e) {
console.error(`Failed to sign ${configuration.path}`)
console.error(e)
Expand Down

0 comments on commit 2221e23

Please sign in to comment.