diff --git a/ts/scripts/sign-windows.ts b/ts/scripts/sign-windows.ts index 6dc1b4e48d..f5bd93db74 100644 --- a/ts/scripts/sign-windows.ts +++ b/ts/scripts/sign-windows.ts @@ -25,7 +25,11 @@ export async function sign( const target = await realpath(configuration.path); // The script will update the file in-place - execSync(`bash ${scriptPath} ${target}`, { + const returnCode = execSync(`bash ${scriptPath} ${target}`, { stdio: [null, process.stdout, process.stderr], }); + + if (returnCode) { + throw new Error(`sign-windows: Script returned code ${returnCode}`); + } }