1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

Merge pull request #9 from joseph-flinn/testing-hsm

Testing hsm
This commit is contained in:
Joseph Flinn
2021-01-15 10:06:18 -08:00
committed by GitHub

View File

@@ -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} ` +