mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
commit
7410f99d83
7
sign.js
7
sign.js
@ -1,5 +1,10 @@
|
||||
exports.default = async function(configuration) {
|
||||
if (process.env.ELECTRON_BUILDER_SIGN === 1) {
|
||||
if (
|
||||
parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 &&
|
||||
configuration.path.slice(-4) == ".exe" &&
|
||||
!(configuration.path.includes('win-unpacked') || configuration.path.includes('win-ia32-unpacked'))
|
||||
) {
|
||||
console.log(`[*] Signing file: ${configuration.path}`)
|
||||
require("child_process").execSync(
|
||||
`azuresigntool sign ` +
|
||||
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
||||
|
Loading…
Reference in New Issue
Block a user