Skip to content

build(win): separate x64 + arm64 installers (v0.2.1)#66

Merged
oahsiao merged 1 commit into
mainfrom
release/v0.2.1
Jun 24, 2026
Merged

build(win): separate x64 + arm64 installers (v0.2.1)#66
oahsiao merged 1 commit into
mainfrom
release/v0.2.1

Conversation

@oahsiao

@oahsiao oahsiao commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What

Ship two separate per-CPU Windows installers for 0.2.1 instead of one combined file:

  • M2_GIT_DIFF Setup 0.2.1 x64.exe (~85 MB)
  • M2_GIT_DIFF Setup 0.2.1 arm64.exe (~91 MB)

Why

0.2.0 shipped a single combined x64+arm64 installer (~176 MB). ARM64 was included but not visible as its own download. This makes each architecture an explicit, smaller download.

How

  • dist now runs electron-builder once per arch (--win --x64 then --win --arm64, both --publish never). A single multi-arch nsis target always also emits the combined installer, so per-arch invocations are the only reliable way to get exactly two files.
  • nsis.artifactName adds \ so the files are clearly labelled.
  • Version bump 0.2.0 -> 0.2.1.

Verified locally

npm run dist produced exactly two installers (x64 + arm64), no combined. scripts/release.ps1 (glob Setup <version>*.exe) and CI (release/*.exe) both already pick up multiple installers, so no further changes needed.

Build each arch in its own electron-builder invocation so NSIS emits two per-arch installers instead of a single combined ~176 MB file.

- dist: electron-builder --win --x64 then --arm64 (both --publish never)
- nsis.artifactName adds \: 'Setup 0.2.1 x64.exe' / 'Setup 0.2.1 arm64.exe'
- bump 0.2.0 -> 0.2.1
@oahsiao oahsiao enabled auto-merge June 24, 2026 10:13
@oahsiao oahsiao merged commit 82fb24d into main Jun 24, 2026
6 checks passed
@oahsiao oahsiao deleted the release/v0.2.1 branch June 24, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant