Skip to content

Ship a prebuilt universal app so Homebrew installs need no Xcode - #5

Open
joncode wants to merge 1 commit into
mainfrom
prebuilt-release
Open

joncode wants to merge 1 commit into
mainfrom
prebuilt-release

Conversation

@joncode

@joncode joncode commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Why

brew install joncode/tap/jumpcall compiles from source, so Homebrew requires a current Xcode on every install machine. On a fresh macOS it refuses outright ("Your Xcode (16.2) … is too outdated. Please update to Xcode 27.0"), and the fix is a multi-GB Xcode download just to install a menu-bar app.

What changes

Build once in CI and have the formula install the result, so installs compile nothing.

  • make dist builds a universal (arm64 + x86_64), ad-hoc-signed JumpCall.app, verifies both slices with lipo, and tars it as build/jumpcall-<version>-macos-universal.tar.gz. The app sits inside a jumpcall-<version>/ folder because Homebrew cd's into an archive's single top-level directory.
  • .github/workflows/release.yml
    • On v* tags: checks the tag matches Info.plist, runs make test and make dist, smoke-tests the packaged app (codesign --verify, lipo -archs, jumpcall version), and attaches the tarball to the GitHub release.
    • If a TAP_GITHUB_TOKEN secret is set (fine-grained PAT, Contents read/write on joncode/homebrew-tap), it commits the rendered formula to the tap. Without it, the formula is printed in the job summary to paste by hand.
    • On PRs touching packaging files, it runs as a dry run and uploads the tarball and formula as a workflow artifact. This PR exercises it.
  • packaging/homebrew/jumpcall.rb.in + scripts/render-formula.sh hold the new formula: it installs the prebuilt JumpCall.app and symlinks the CLI. --HEAD still builds from source. It also now includes AppIcon.icns, which the current source-build formula omits.
  • README gets updated install and requirements text, make dist, and a Releasing section. The "Homebrew tap" roadmap item is removed.

The user-facing flow is unchanged: brew install joncode/tap/jumpcall && jumpcall install.

After merge

  1. Optionally add the TAP_GITHUB_TOKEN secret.
  2. Bump CFBundleShortVersionString (e.g. 0.4.14), commit, then git tag v0.4.14 && git push --tags.
  3. Check brew update && brew upgrade jumpcall on a machine without Xcode.

Notes

  • Signing is still ad-hoc, same as today, so the Accessibility-grant-reset-on-upgrade behaviour doesn't change. Homebrew formula downloads aren't quarantined, so Gatekeeper doesn't block it. Developer ID signing and notarization could come later.
  • Written from a Linux session, so the Swift and make dist paths weren't run locally. The workflow YAML, formula template (ruby -c), and render script were syntax-checked. The dry-run job on this PR is the real test.
  • Intel slice is built but untested on hardware, same as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DniGhfptRjcvzEtXCFxKbS


Generated by Claude Code

The tap formula compiles from source, so every install needs a current
Xcode (Homebrew refuses outdated ones). Build once in CI instead:

- make dist: universal (arm64 + x86_64) ad-hoc-signed JumpCall.app,
  tarred in a jumpcall-<version>/ folder
- release.yml: on v* tags, test + make dist, attach the tarball to the
  GitHub release, and bump joncode/homebrew-tap when TAP_GITHUB_TOKEN is
  set; pull requests run it as a dry run with the tarball as an artifact
- packaging/homebrew/jumpcall.rb.in + scripts/render-formula.sh: formula
  that installs the prebuilt app (HEAD still builds from source)
- README: install/requirements/releasing docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DniGhfptRjcvzEtXCFxKbS
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