build(postinstall): fail loud when electron name patch errors (P3-28)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:55:32 -04:00
1 parent 08968e8331
commit c93b28925b
1 file changed
+4 -3
+4 -3
View File
@@ -22,12 +22,13 @@ const result = spawnSync("bash", [patchScriptPath], {
}); });
if (result.error) { if (result.error) {
console.warn(`[postinstall] Electron name patch failed: ${result.error.message}`); console.error(`[postinstall] Electron name patch failed: ${result.error.message}`);
process.exit(0); process.exit(1);
} }
if ((result.status ?? 0) !== 0) { if ((result.status ?? 0) !== 0) {
console.warn(`[postinstall] Electron name patch exited with status ${result.status}. Continuing install.`); console.error(`[postinstall] Electron name patch exited with status ${result.status}.`);
process.exit(result.status ?? 1);
} }
process.exit(0); process.exit(0);