mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 21:52:31 -05:00
fix npm run dist:dir
This commit is contained in:
parent
af73790306
commit
b26c0b6bd3
1 changed files with 4 additions and 3 deletions
|
@ -50,9 +50,10 @@ const runBuilder = function (targetGroup) {
|
||||||
throw new Error(`NSIS build requires CSC_LINK or WIN_CSC_LINK`);
|
throw new Error(`NSIS build requires CSC_LINK or WIN_CSC_LINK`);
|
||||||
}
|
}
|
||||||
const platformFlag = getPlatformFlag();
|
const platformFlag = getPlatformFlag();
|
||||||
const command = `electron-builder ${platformFlag} ${targetGroup}`;
|
const customArgs = process.argv.slice(2); // remove `node` and `this-script.js`
|
||||||
console.log(`running: ${command}`);
|
const allArgs = [platformFlag, targetGroup, ...customArgs];
|
||||||
const result = spawnSync(command, {
|
console.log(`running electron-builder with arguments: ${allArgs}`);
|
||||||
|
const result = spawnSync('electron-builder', allArgs, {
|
||||||
env: childEnvironment,
|
env: childEnvironment,
|
||||||
shell: true,
|
shell: true,
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
|
|
Loading…
Reference in a new issue