Skip to content

Commit d92e6de

Browse files
beautyfreeclaude
andauthored
Add mac zip target so electron-updater gets latest-mac.yml (#8)
The v0.2.0 release succeeded (assets signed, notarized, uploaded) but was missing `latest-mac.yml` — electron-builder only emits that manifest when it builds a publishable macOS archive itself. With `target: dir` alone it just hands us an unpacked .app and skips the manifest entirely, which means every macOS user we ship to would never auto-update. Fix: add `zip` as a second macOS target. electron-builder builds both in one pass: - `dir` → feeds scripts/repack-dmg.sh for the human-facing styled DMG - `zip` → what electron-updater downloads at runtime; writes `latest-mac.yml` listing it + a matching `.blockmap` for delta updates Upload glob in release.yml gets `*.zip` so the archive reaches the Release page. README still points users at the DMG (zip is for the updater, not humans). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8c8ff84 commit d92e6de

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ jobs:
159159
draft: true
160160
files: |
161161
artifacts/*.dmg
162+
artifacts/*.zip
162163
artifacts/*.exe
163164
artifacts/*.AppImage
164165
artifacts/*.deb

electron-builder.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ mac:
3939
gatekeeperAssess: false
4040
entitlements: build-resources/entitlements.mac.plist
4141
entitlementsInherit: build-resources/entitlements.mac.plist
42-
# Two-architecture fat binary. Drop `x64` if you only ship Apple Silicon.
42+
# `dir` = unpacked .app bundle (consumed by scripts/repack-dmg.sh to produce
43+
# the styled DMG humans download). `zip` = autoupdate transport — electron-
44+
# updater downloads this at runtime and writes `latest-mac.yml` listing it.
45+
# Without the zip target, electron-builder skips `latest-mac.yml` entirely
46+
# and auto-updates silently break for macOS users.
4347
target:
4448
- target: dir
4549
arch: [arm64]
50+
- target: zip
51+
arch: [arm64]
4652

4753
# Electron-builder's own DMG creation is disabled on macOS (see target: dir
4854
# above). scripts/repack-dmg.sh produces the styled, drag-to-Applications DMG

0 commit comments

Comments
 (0)