excluding the unpacked appx executables

This commit is contained in:
Joseph Flinn 2021-01-15 17:19:34 +00:00
parent b4a36dbfd2
commit 429b0abf42
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
exports.default = async function(configuration) {
if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && configuration.path.slice(-4) == ".exe") {
if (
parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 &&
configuration.path.slice(-4) == ".exe" &&
!(configuration.path.includes('win-unpacked') || configuration.path.includes('win-ia32-unpacked'))
) {
require("child_process").execSync(
`azuresigntool sign ` +
`-kvu ${process.env.SIGNING_VAULT_URL} ` +