mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -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`);
|
||||
}
|
||||
const platformFlag = getPlatformFlag();
|
||||
const command = `electron-builder ${platformFlag} ${targetGroup}`;
|
||||
console.log(`running: ${command}`);
|
||||
const result = spawnSync(command, {
|
||||
const customArgs = process.argv.slice(2); // remove `node` and `this-script.js`
|
||||
const allArgs = [platformFlag, targetGroup, ...customArgs];
|
||||
console.log(`running electron-builder with arguments: ${allArgs}`);
|
||||
const result = spawnSync('electron-builder', allArgs, {
|
||||
env: childEnvironment,
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
|
|
Loading…
Reference in a new issue