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 1a00e40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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
7 changes: 3 additions & 4 deletions forge.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = {
overwrite: true,
asar: true,
icon: "./images/app-icons/icon",
signToolPath: "C:\\ev_signer_trilium\\ev_signer_trilium.exe",
signWithParams: "--executable",
extraResource: [
// Moved to root
...getExtraResourcesForPlatform(),
Expand Down Expand Up @@ -63,10 +65,7 @@ module.exports = {
config: {
iconUrl: "https://raw.githubusercontent.com/TriliumNext/Notes/develop/images/app-icons/icon.ico",
setupIcon: "./images/app-icons/icon.ico",
loadingGif: "./images/app-icons/win/setup-banner.gif",
windowsSign: {
hookModulePath: "./bin/sign-windows.js"
}
loadingGif: "./images/app-icons/win/setup-banner.gif"
}
},
{
Expand Down

0 comments on commit 1a00e40

Please sign in to comment.