From 2ccbc100ec14115c46325f4d80003996026c900b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 28 Apr 2025 20:09:27 +0300 Subject: [PATCH] chore(nx/forge): add error logging for windows signing --- apps/desktop/electron-forge/sign-windows.cjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/desktop/electron-forge/sign-windows.cjs b/apps/desktop/electron-forge/sign-windows.cjs index caa64dbc6..44b6787a2 100644 --- a/apps/desktop/electron-forge/sign-windows.cjs +++ b/apps/desktop/electron-forge/sign-windows.cjs @@ -15,6 +15,9 @@ module.exports = function (filePath) { const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`; console.log(`[Sign] ${command}`); - const output = child_process.execSync(command); - console.log(`[Sign] ${output}`); + try { + child_process.execSync(command); + } catch (e) { + console.error("[Sign]", e.output.toString("utf-8")); + } } \ No newline at end of file