From bac0503c7411ccfb2c2658e248618355a77cbc89 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 27 Apr 2025 23:47:51 +0300 Subject: [PATCH] chore(nx/ci): add debug logs for signing --- apps/desktop/electron-forge/sign-windows.cjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/electron-forge/sign-windows.cjs b/apps/desktop/electron-forge/sign-windows.cjs index 7cd1db2d7..caa64dbc6 100644 --- a/apps/desktop/electron-forge/sign-windows.cjs +++ b/apps/desktop/electron-forge/sign-windows.cjs @@ -1,8 +1,12 @@ const child_process = require("child_process"); +const fs = require("fs"); module.exports = function (filePath) { const { WINDOWS_SIGN_EXECUTABLE } = process.env; + const stats = fs.lstatSync(filePath); + console.log(filePath, stats); + if (!WINDOWS_SIGN_EXECUTABLE) { console.warn("[Sign] Skip signing due to missing environment variable."); return; @@ -10,6 +14,7 @@ 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}`); } \ No newline at end of file