You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
749 B
23 lines
749 B
exports.default = async function(configuration) { |
|
if ( |
|
parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && |
|
configuration.path.slice(-4) == ".exe" |
|
) { |
|
console.log(`[*] Signing file: ${configuration.path}`) |
|
require("child_process").execSync( |
|
`azuresigntool sign -v ` + |
|
`-kvu ${process.env.SIGNING_VAULT_URL} ` + |
|
`-kvi ${process.env.SIGNING_CLIENT_ID} ` + |
|
`-kvt ${process.env.SIGNING_TENANT_ID} ` + |
|
`-kvs ${process.env.SIGNING_CLIENT_SECRET} ` + |
|
`-kvc ${process.env.SIGNING_CERT_NAME} ` + |
|
`-fd ${configuration.hash} ` + |
|
`-du ${configuration.site} ` + |
|
`-tr http://timestamp.digicert.com ` + |
|
`${configuration.path}`, |
|
{ |
|
stdio: "inherit" |
|
} |
|
); |
|
} |
|
};
|
|
|