mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -05:00
bubble errors out from electron-builder-wrapper
This commit is contained in:
parent
ccaca91bea
commit
5c2303a9b5
1 changed files with 10 additions and 1 deletions
|
@ -52,11 +52,20 @@ const runBuilder = function (targetGroup) {
|
|||
const platformFlag = getPlatformFlag();
|
||||
const command = `electron-builder ${platformFlag} ${targetGroup}`;
|
||||
console.log(`running: ${command}`);
|
||||
spawnSync(command, {
|
||||
const result = spawnSync(command, {
|
||||
env: childEnvironment,
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
if (result.error) {
|
||||
throw result.error;
|
||||
}
|
||||
if (result.signal) {
|
||||
throw new Error(`Child process terminated due to signal ${result.signal}`);
|
||||
}
|
||||
if (result.status) {
|
||||
throw new Error(`Child process returned status code ${result.status}`);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue