Skip to content

Commit

Permalink
feat(ci): adapt hook script to call executable
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 19, 2025
1 parent cca3fc6 commit 4c529af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions bin/sign-windows.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export default async function (filePath) {
console.log(`Path to file to sign: ${filePath}`)
const child_process = require("child_process");
const SIGN_EXECUTABLE = "C:\\ev_signer_trilium\\ev_signer_trilium.exe";

module.exports = function (filePath) {
console.log(`Path to file to sign: ${filePath}`);
child_process.execSync(`${SIGN_EXECUTABLE} "${filePath}"`);
}
2 changes: 0 additions & 2 deletions forge.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ module.exports = {
overwrite: true,
asar: true,
icon: "./images/app-icons/icon",
signToolPath: "C:\\ev_signer_trilium\\ev_signer_trilium.exe",
signWithParams: "--executable",
windowsSign: {
hookModulePath: "bin\\sign-windows.js"
},
Expand Down

0 comments on commit 4c529af

Please sign in to comment.