Install Friday on Apple Silicon Macs - #8
Merged
Merged
Conversation
Add the macOS install path: install.sh detects Darwin, bootstraps a pinned uv, verifies the source with shasum, and hands over to ops/install_core.py, a stdlib-plus-friday_host transaction with the same rollback contract as the Linux bash body. friday_host/service.py provides systemd and launchd backends; the launchd agent runs ops/friday_launch.py so friday.env applies without EnvironmentFile. ops/fridayctl.py serves the friday subcommands on macOS, including trust-ca, and ops/uninstall.py is the portable uninstall. Pinned asset installers for llama-server builds, the MLX runtime, and the official Qwen3 checkpoints verify size and SHA-256 before publishing, extract archives with path validation, and are idempotent. requirements/uv-pins.json records the uv 0.12.9 archive digests per target. The doctor and data scripts use the host layer, the site bootstrap accepts Darwin with shasum, and the README, site, and installer docs describe the macOS target. Rehearsals of the macOS path on other platforms require FRIDAY_INSTALL_REHEARSAL=1 and clear XDG_* so they cannot touch a real Linux install. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kz3qQeARQrqpAaCAHcy96c
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kz3qQeARQrqpAaCAHcy96c
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kz3qQeARQrqpAaCAHcy96c
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kz3qQeARQrqpAaCAHcy96c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of the cross-platform port: Friday installs and runs on macOS 14+ with Apple Silicon.
install.shdetects Darwin, bootstraps a pinneduv0.12.9 (digest kept in sync withrequirements/uv-pins.jsonby a test), verifies sources withshasum, validates archive members, and hands over toops/install_core.py.ops/install_core.pyruns the same transaction as the Linux bash body (lock, snapshot, release dir, hashed venv fromruntime-macos-arm64.lock, assets, engine, config, service, atomiccurrentswitch, doctor, rollback) using only the standard library andfriday_host.friday_host/service.pyadds systemd and launchd backends with exact command coverage;ops/friday.launchd.plist.inandops/friday_launch.pyrun the supervisor as a login agent withfriday.envapplied.ops/fridayctl.pyprovides thefridaysubcommands on macOS plustrust-ca/untrust-ca;ops/uninstall.pyis the portable uninstall.Safety note
Rehearsing the Darwin path on another platform now requires
FRIDAY_INSTALL_REHEARSAL=1, and the harness clearsXDG_*variables. Without that, a developer shell exporting XDG paths pointed the rehearsal at the real Linux install root.Test plan
scripts/run_tests.py --require-no-platform-skips(1049 tests)scripts/check-release.sh,scripts/check_architecture.py,git diff --check🤖 Generated with Claude Code
https://claude.ai/code/session_01Kz3qQeARQrqpAaCAHcy96c