only signing .exe

This commit is contained in:
Joseph Flinn 2021-01-15 16:18:14 +00:00
parent 404e4130da
commit b4a36dbfd2
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
exports.default = async function(configuration) {
if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1) {
console.log(`[++] File to sign: ${configuration.path}`)
if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && configuration.path.slice(-4) == ".exe") {
require("child_process").execSync(
`azuresigntool sign ` +
`-kvu ${process.env.SIGNING_VAULT_URL} ` +