Skip to content

feat(scripts): one-command macOS install for fork desktop builds - #11

Merged
ethanlee66 merged 1 commit into
mainfrom
feat/fork-mac-installer
Nov 24, 2026
Merged

ethanlee66 merged 1 commit into
mainfrom
feat/fork-mac-installer

Conversation

@ethanlee66

Copy link
Copy Markdown
Owner

Fork desktop builds are not Developer ID signed or notarized: no Apple signing secrets are configured, so CI ships linker-signed ad-hoc apps. A DMG downloaded in a browser gets com.apple.quarantine, and Gatekeeper refuses to open it until that attribute is cleared by hand. That has to be repeated after every release, since in-app updates on macOS also need a real signature.

Fix

scripts/install-fork-mac.sh installs a release without a browser:

  1. Resolves the newest release (or --tag) and downloads this Mac's zip with gh, which does not quarantine files.
  2. Checks the zip against the sha512 in the release's *-mac.yml. A codesign --verify can't stand in here because these builds have no sealed resources.
  3. Unpacks with ditto and swaps the app into /Applications (or --dest). If the copy fails, the previous app is restored.
  4. Quits the copy being replaced only when that exact path is running, after asking (--yes skips the prompt), then reopens it (--no-relaunch to skip).
  5. Exits early when that version is already installed (--force to reinstall).

T3_FORK_REPO points it at another fork.

Verification

  • Full install into a scratch directory: download, checksum, unpack and install pass, and the installed app has no quarantine attribute (only com.apple.provenance, the same as the working copy in /Applications).
  • Re-running reports that the version is already installed. --force reinstalls cleanly.
  • Running-app detection matches the live /Applications/T3 Code (Nightly).app and not a copy elsewhere.
  • Not exercised: replacing the live /Applications app, because it would quit the T3 Code this was developed in. The next nightly is the first real run.
  • vp run check:changed passes.

Done by Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Fork desktop builds are not Developer ID signed, so a DMG downloaded in a
browser is quarantined and Gatekeeper refuses to open it until the
quarantine attribute is cleared by hand after every release.

scripts/install-fork-mac.sh downloads the newest release (or --tag) with
gh, which does not quarantine files, checks the zip against the release
manifest's sha512, and swaps it into /Applications. It quits the installed
copy only when that copy is running (after asking), restores the previous
app if the copy fails, and exits early when that version is already
installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 24, 2026
@ethanlee66
ethanlee66 merged commit 2b4d9a5 into main Nov 24, 2026
13 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants