mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
7
sign.js
7
sign.js
@@ -1,5 +1,10 @@
|
|||||||
exports.default = async function(configuration) {
|
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(
|
require("child_process").execSync(
|
||||||
`azuresigntool sign ` +
|
`azuresigntool sign ` +
|
||||||
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
||||||
|
|||||||
Reference in New Issue
Block a user