diff --git a/apps/desktop/electron-builder.beta.json b/apps/desktop/electron-builder.beta.json index f0746e6d408..88ab1602dbe 100644 --- a/apps/desktop/electron-builder.beta.json +++ b/apps/desktop/electron-builder.beta.json @@ -32,6 +32,7 @@ "win": { "electronUpdaterCompatibility": ">=0.0.1", "target": ["portable", "nsis-web", "appx"], + "signExts": [".dll", ".node"], "signtoolOptions": { "sign": "./sign.js" }, diff --git a/apps/desktop/electron-builder.json b/apps/desktop/electron-builder.json index f876b7ff680..9d21c04c122 100644 --- a/apps/desktop/electron-builder.json +++ b/apps/desktop/electron-builder.json @@ -93,6 +93,7 @@ "win": { "electronUpdaterCompatibility": ">=0.0.1", "target": ["portable", "nsis-web", "appx"], + "signExts": [".dll", ".node"], "signtoolOptions": { "sign": "./sign.js" }, diff --git a/apps/desktop/sign.js b/apps/desktop/sign.js index a01388c703c..c5a05df8480 100644 --- a/apps/desktop/sign.js +++ b/apps/desktop/sign.js @@ -3,7 +3,7 @@ const child_process = require("child_process"); exports.default = async function (configuration) { const ext = configuration.path.split(".").at(-1); - if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && ["exe"].includes(ext)) { + if (parseInt(process.env.ELECTRON_BUILDER_SIGN) === 1 && ["exe", "dll", "node"].includes(ext)) { console.log(`[*] Signing file: ${configuration.path}`); child_process.execFileSync( "azuresigntool", @@ -25,7 +25,10 @@ exports.default = async function (configuration) { stdio: "inherit", }, ); - } else if (process.env.ELECTRON_BUILDER_SIGN_CERT && ["exe", "appx"].includes(ext)) { + } else if ( + process.env.ELECTRON_BUILDER_SIGN_CERT && + ["exe", "dll", "node", "appx"].includes(ext) + ) { console.log(`[*] Signing file: ${configuration.path}`); if (process.platform !== "win32") { console.warn(