diff --git a/scripts/electron_winSign.js b/scripts/electron_winSign.js index 5ac9c9d..f02b6a0 100644 --- a/scripts/electron_winSign.js +++ b/scripts/electron_winSign.js @@ -48,8 +48,7 @@ exports.default = async function(cfg) { const appOutDir = path.dirname(inPath); return new Promise((resolve, reject) => { - const args = ['sign']; - args.push(...computeSignToolArgs(cfg.options, keyContainer, cfg.path)); + const args = ['sign'].concat(computeSignToolArgs(cfg.options, keyContainer, cfg.path)); console.log("Running signtool with args", args); execFile('signtool', args, {}, (error, stdout) => {