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 a6ebcc4 commit 79ecfb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sign-win/sign-win.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const exec = util.promisify(require('child_process').exec)

// This is a callback that can be used to sign the executable on Windows.
// See: https://www.electron.build/configuration/win
// We are using this callback instead of the electron-builder built-in mechanism
Expand All @@ -6,10 +8,12 @@
exports.default = async function (configuration) {
console.log('@@ Signing for windows', configuration.path)
const execPath = configuration.path
require('child_process').execSync(
const { stdout, stderr } = await exec(
`smctl sign --fingerprint "${configuration.fingerprint}" --input "${execPath}"`,
{
stdio: 'inherit'
}
)
console.log('@@ stdout', stdout)
console.log('@@ stderr', stderr)
}

0 comments on commit 79ecfb3

Please sign in to comment.