From c93b28925b047b6119c558dfdf9f40ab5eea57c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 22:55:32 -0400 Subject: [PATCH] build(postinstall): fail loud when electron name patch errors (P3-28) --- scripts/postinstall.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/postinstall.mjs b/scripts/postinstall.mjs index 627adfef..826fb808 100644 --- a/scripts/postinstall.mjs +++ b/scripts/postinstall.mjs @@ -22,12 +22,13 @@ const result = spawnSync("bash", [patchScriptPath], { }); if (result.error) { - console.warn(`[postinstall] Electron name patch failed: ${result.error.message}`); - process.exit(0); + console.error(`[postinstall] Electron name patch failed: ${result.error.message}`); + process.exit(1); } 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);