1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01: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
commit 7410f99d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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