Skip to content

Commit

Permalink
chore(ci): using signing params instead of hook
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 19, 2025
1 parent 25a8b77 commit 2a4cc41
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build-electron/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ runs:
- name: Run electron-forge
shell: cmd
run: npm run make-electron -- --arch=${{ inputs.arch }}
env:
WINDOWS_SIGNTOOL_PATH: "C:\\ev_signer_trilium\\ev_signer_trilium.exe"
WINDOWS_SIGN_WITH_PARAMS: --executable
- uses: actions/upload-artifact@v4
with:
name: Artifacts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
os: ${{ matrix.os.name }}
arch: ${{ matrix.arch }}
extension: ${{ matrix.os.extension }}
env:
WINDOWS_SIGNTOOL_PATH: "C:\\ev_signer_trilium\\ev_signer_trilium.exe"
WINDOWS_SIGN_WITH_PARAMS: --executable
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
14 changes: 12 additions & 2 deletions forge.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require("path");
const fs = require("fs-extra");

const APP_NAME = "TriliumNext Notes";

module.exports = {
Expand All @@ -10,6 +9,14 @@ module.exports = {
overwrite: true,
asar: true,
icon: "./images/app-icons/icon",
signToolPath: "C:\\ev_signer_trilium\\ev_signer_trilium.exe",
signWithParams: "--executable",
windowsSign: {
signToolPath: "C:\\ev_signer_trilium\\ev_signer_trilium.exe",
signWithParams: [
"--executable"
]
},
extraResource: [
// Moved to root
...getExtraResourcesForPlatform(),
Expand Down Expand Up @@ -65,7 +72,10 @@ module.exports = {
setupIcon: "./images/app-icons/icon.ico",
loadingGif: "./images/app-icons/win/setup-banner.gif",
windowsSign: {
hookModulePath: "./bin/sign-windows.js"
signToolPath: "C:\\ev_signer_trilium\\ev_signer_trilium.exe",
signWithParams: [
"--executable"
]
}
}
},
Expand Down

0 comments on commit 2a4cc41

Please sign in to comment.