Skip to content

Build your personal knowledge base with Trilium Notes

chore(nx/forge): add error logging for windows signing

Elian Doran2ccbc100ec14
diff --git a/apps/desktop/electron-forge/sign-windows.cjs b/apps/desktop/electron-forge/sign-windows.cjs
index caa64dbc69..44b6787a2e 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