diff --git a/src/util/util.ts b/src/util/util.ts index 7aa85085e2a..2d5f4145f6d 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -56,10 +56,10 @@ export function spawnNpmProduction(command: string, appDir: string, forceBuildFr if (additionalArgs) { if (Array.isArray(additionalArgs)) { - additionalArgs.push(...additionalArgs) + npmExecArgs.push(...additionalArgs) } else { - additionalArgs.push(additionalArgs) + npmExecArgs.push(additionalArgs) } } @@ -324,4 +324,4 @@ export function getCacheDirectory(): string { else { return path.join(homedir(), ".cache", "electron-builder") } -} \ No newline at end of file +}