Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
run: npm run rebuild

- name: Build installer (electron-builder)
# --publish never: only package the artifacts here. Publishing is
# handled by the dedicated "Publish GitHub Release" step below.
# Without this, electron-builder auto-publishes on a tag and fails
# with "GitHub Personal Access Token is not set".
# --publish never: build the multi-arch NSIS installers (x64 + arm64)
# locally only; the "Publish GitHub Release" step below uploads them.
# Without this, electron-builder auto-detects the tag and tries to
# publish itself, failing because GH_TOKEN isn't set in this step.
# NOTE: dist is a single electron-builder invocation, so --publish never
# is applied exactly once (no duplicate-flag array problem).
run: npm run dist -- --publish never

- name: Publish GitHub Release
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "cross-env NODE_ENV=development electron .",
"start:prod": "cross-env NODE_ENV=production electron .",
"rebuild": "electron-rebuild -f -w better-sqlite3",
"dist": "vite build && electron-builder --win --x64 --publish never && electron-builder --win --arm64 --publish never",
"dist": "vite build && electron-builder --win --x64 --arm64",
"release": "powershell -ExecutionPolicy Bypass -File scripts/release.ps1",
"demo:gif": "node scripts/make-demo-gif.mjs",
"check:license": "node scripts/check-license-headers.mjs",
Expand Down Expand Up @@ -62,16 +62,20 @@
"win": {
"target": [
{
"target": "nsis"
"target": "nsis",
"arch": [
"x64",
"arm64"
]
}
],
"icon": "public/icon.ico"
"icon": "public/icon.ico",
"artifactName": "${productName} Setup ${version} ${arch}.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"artifactName": "${productName} Setup ${version} ${arch}.${ext}",
"include": "installer/installer.nsh",
"installerIcon": "public/icon.ico",
"uninstallerIcon": "public/icon.ico",
Expand Down
Loading