Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Problem

The macOS release build ran two separate electron-builder commands:

  1. --mac --x64 --publish always
  2. --mac --arm64 --publish always

The second command overwrote latest-mac.yml with only arm64 artifacts. This broke auto-update for x64 Mac users—they'd get ERR_UPDATER_ZIP_FILE_NOT_FOUND because electron-updater filters by process.arch and finds no matching files.

Solution

Use a single --mac --x64 --arm64 --publish always command which:

  • Generates a unified latest-mac.yml containing both architectures
  • Still builds sequentially internally (no keychain conflicts)
  • Simpler and more maintainable (−17 lines)

Ref: electron-builder#5592


Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

The previous approach ran two separate electron-builder commands sequentially:
1. `--mac --x64 --publish always`
2. `--mac --arm64 --publish always`

This caused the second command to overwrite `latest-mac.yml` with only
arm64 artifacts, breaking auto-update for x64 Mac users (they'd get
ERR_UPDATER_ZIP_FILE_NOT_FOUND).

Fix: Use a single `--mac --x64 --arm64 --publish always` command which:
- Generates a unified `latest-mac.yml` containing both architectures
- Still builds sequentially internally (no keychain conflicts)
- Simpler and more maintainable (-18 lines)

Ref: electron-builder#5592
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