Skip to content

build(release): ship per-arch builds and a per-arch appcast - #4414

Merged
datlechin merged 6 commits into
mainfrom
build/per-arch-release
Nov 22, 2026
Merged

datlechin merged 6 commits into
mainfrom
build/per-arch-release

Conversation

@datlechin

@datlechin datlechin commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Ships the macOS app per arch again: TablePro-<ver>-arm64 and -x86_64, each a .dmg, a .tar.xz and a -dSYMs.zip. Registry plugins stay universal.
  • build.sh app [arm64|x86_64] and package.sh app [arm64|x86_64] (none means both) write to build/release/<arch>/. check_arch fails a binary that carries the other slice.
  • release.yml's App job is an arm64/x86_64 matrix; github-release merges both artifacts. 3 macOS jobs at once with Plugins.
  • Why 0.82 went universal: the release rewrite (ci(release): build the Release config on main and release branches #3488, build(release): add the feed, registry and GitHub release tooling #3499, ci(release): release from tags through release.yml #3506) moved the feed onto Sparkle's stock generate_appcast, which refuses two archives of one bundle version ("Duplicate updates are not supported", generate_appcast/Unarchive.swift). No commit, issue or PR names another reason; the download page and docs followed (feat(releases): one universal DMG from the updates.tablepro.app feed web#119, docs: one universal DMG, and changelog blocks from notes.py docs#35).
  • feed.py runs generate_appcast once per arch over the same feed, keeps the x86_64 run's feed (it prunes exactly as the universal feed did), puts the arm64 item first with the x86_64 item's pubDate, and re-signs.
  • Order matters: Sparkle 2.10 takes the first of two equal versions (SUAppcastDriver.m, bestItemFromAppcastItems), and a native Intel process drops the gated item (SPUAppcastItemStateResolver.m, isArm64HardwareRequirementOK). One pubDate keeps a phased rollout from offering x86_64 alone.
  • new_item_problems checks both items: URL, sparkle:hardwareRequirements (arm64 only on arm64), signature, order and date.
  • verify-plugin-loads.sh --arch builds the probe for that arch, so the x86_64 leg dlopens under Rosetta. A Mac that cannot run the arch skips the check, except in CI.
  • RELEASING.md, CONTRIBUTING.md and the release skill's asset check follow.
  • Before the first per-arch tag, outside this repo: the Homebrew cask's url (it fetches TablePro-#{version}.dmg), the download page (TableProApp/web, branch feat/mac-per-arch-download, no PR yet) and docs installation.mdx.

Test plan

  • Release tooling suite with the pinned requirements on Python 3.9, the Lint job's command: 186 pass. shellcheck, actionlint and zizmor clean.
  • test_feed.py changed on purpose: its fake generate_appcast now refuses two archives of one version as Sparkle does, so tests that counted one run or one signing count two. Before the feed.py fix the new add tests fail on that refusal.
  • Sparkle 2.10.0's real generate_appcast on this branch's first commit (both archives in one stage): exits 1, "Duplicate updates are not supported".
  • feed.add with the real generate_appcast and sign_update, throwaway keys, seeded with a copy of today's gh-pages feed (universal 0.85.0 to 0.88.0-beta.2): 0.99.0, 0.99.1, 0.99.2, 0.99.3 and 0.100.0-beta.1, then withdraw 0.99.3. Every pair arm64 first, one date, both signed, feed verifies; pruning drops both items of a version; the withdraw removes 2 items and re-signs.
  • build.sh app <arch> --unsigned and package.sh app <arch> --unsigned, both arches, M4 Pro: arm64 1495 s, x86_64 1893 s, -jobs 1. "All 16 plugins load" on both, x86_64 under Rosetta.
  • Sizes, arm64 / x86_64 / universal: app 108 / 112 / 200 MiB; DMG 47.9 / 50.9 / 86.5 MB (0.87.0); update .tar.xz 29.1 / 32.7 / 54.8 MB (0.87.0).
  • Update: a universal 0.98.0 made from these slices, with a throwaway key and a localhost feed made by feed.py, updated itself on Apple silicon. It fetched the signed feed ("EdDSA signature is correct for appcast"), downloaded only TablePro-0.99.0-arm64.tar.xz, and installed 0.99.0 arm64-only on quit.
  • An installed x86_64-only 0.98.0, which this Mac runs only under Rosetta, also took the arm64 archive and came back arm64-only: a translated process passes the arm64 requirement. No Intel Mac here; per the source above, a native Intel process drops the gated item and takes x86_64.
  • Rosetta on the runner: actions/runner-images images/macos/templates/xcode-27.arm64.anka.pkr.hcl runs install-rosetta.sh.
  • Apps up to 0.81 read the legacy appcast.xml on main, which ends at the universal 0.82.0 and no release writes. Every app on the new feed ships Sparkle 2.10.0; hardwareRequirements arrived in 2.9.0.
  • Not measured: the nightly's Release Build now archives both arches in one job. Its universal "Build the app" took 105 to 142 min of 240 on Nov 18 to 21; the first nightly after merge gives the per-arch time.

Revert the 0.82 universal app to one build per arch.

- build.sh/package.sh take an arch (none builds both); output under build/release/<arch>.
- feed.py stages both arm64 and x86_64 archives plus per-arch notes so generate_appcast emits the paired items, and validates both enclosures, both edSignatures and the hardwareRequirements gating.
- release.yml App job is an arm64/x86_64 matrix; both app artifacts merge into the release.
- verify-plugin-loads.sh builds the probe for the target arch so the x86_64 build loads under Rosetta.
@datlechin
datlechin enabled auto-merge (squash) November 22, 2026 06:52
@datlechin
datlechin disabled auto-merge November 22, 2026 07:02
@datlechin datlechin closed this Nov 22, 2026
@datlechin datlechin reopened this Nov 22, 2026
@datlechin
datlechin merged commit 7b2ba0f into main Nov 22, 2026
12 checks passed
@datlechin
datlechin deleted the build/per-arch-release branch November 27, 2026 16:38
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