We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccaca91 commit 5c2303aCopy full SHA for 5c2303a
scripts/electron-builder-wrapper.js
@@ -52,11 +52,20 @@ const runBuilder = function (targetGroup) {
52
const platformFlag = getPlatformFlag();
53
const command = `electron-builder ${platformFlag} ${targetGroup}`;
54
console.log(`running: ${command}`);
55
- spawnSync(command, {
+ const result = spawnSync(command, {
56
env: childEnvironment,
57
shell: true,
58
stdio: 'inherit'
59
});
60
+ if (result.error) {
61
+ throw result.error;
62
+ }
63
+ if (result.signal) {
64
+ throw new Error(`Child process terminated due to signal ${result.signal}`);
65
66
+ if (result.status) {
67
+ throw new Error(`Child process returned status code ${result.status}`);
68
69
};
70
71
/**
0 commit comments