[PR #1171] [MERGED] macOS on Intel: x86_64 game and launcher builds, picked per processor #3387

Closed
opened 2026-11-03 04:09:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1171
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/macos-x64


📝 Commits (4)

  • 1102fa4 macOS on Intel: x86_64 builds of the game and the launcher (#1161)
  • 23f553e Merge origin/main: Intel Mac builds in game-build.yml and the Nightly
  • 13fd2ee Merge remote-tracking branch 'origin/main' into HEAD
  • 7f99b2e macOS on Intel: only the Intel launcher may skip its install smoke test

📊 Changes

12 files changed (+222 additions, -63 deletions)

View changed files

📝 .github/workflows/game-build.yml (+23 -10)
📝 .github/workflows/launcher.yml (+36 -9)
📝 .github/workflows/nightly-build.yml (+4 -2)
📝 README.md (+2 -2)
📝 crates/horizon-server/src/update.rs (+2 -0)
📝 docs/hosting.md (+1 -1)
📝 docs/native-mods.md (+3 -2)
📝 docs/release-flow.md (+1 -0)
📝 launcher/README.md (+2 -2)
📝 launcher/src/backend.rs (+123 -25)
📝 packaging/macos/package.sh (+19 -9)
📝 packaging/server/install.sh (+6 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Horizon for Intel Macs, beside Apple Silicon: the game (horizon-macos-x64.zip: client, horizon-ctl, horizon-prepare, horizon-server) and the launcher (horizon-launcher-macos-x64.zip for self-update, horizon-launcher-macos-x64.dmg to install). Requested by shellpark on Discord (#horizon-ideas) for 2020 MacBook Pro/Air and Hackintoshes.

How

  • Separate builds, not a universal binary. Every other asset is per architecture (linux-x86_64, windows-x64, macos-arm64), and a universal binary would double the download for every Apple Silicon player. release.yml and launcher.yml get a macos-x64 matrix entry on the same Mac mini runner, cross-built with --target x86_64-apple-darwin (BIN says where the programs land). The x64 entries' checks (--help/--version, only system libraries, the launcher's tests, the game's 1,500-frame smoke test) run the x86_64 programs under Rosetta 2.
  • Same unsigned path as arm64. Signing and notarization run for x64 exactly when MACOS_SIGN_IDENTITY is set, as for arm64 today.
  • The right asset per architecture. The launcher's asset names now come from one table, PLATFORMS (OS, processor, game asset, launcher asset), resolved at compile time. So the x64 launcher installs horizon-macos-x64.zip and updates itself from horizon-launcher-macos-x64.zip, and existing arm64 launchers are unchanged. A test reads both workflows and fails if any asset in the table isn't built, signed and published.
  • Release plumbing. The x64 zip is in SHA256SUMS (sign job) and the release upload. Only the arm64 job uploads smoke-test.json (both would collide on the name), but the x64 smoke test still has to pass.
  • launcher.yml smoke. Until a stable game release has an Intel build, install latest has nothing to install on x64. The smoke test then warns and skips the install part instead of failing the whole launcher release; the install-independent checks run first.
  • packaging/macos/package.sh takes the architecture (arm64 default, x64), names the assets after it and refuses a binary built for the other processor (lipo -archs).
  • packaging/server/install.sh: Darwin-x86_64 gets the Intel build; a Rosetta shell on Apple Silicon (sysctl.proc_translated) still gets the native one.
  • Website Download button: Chromium's client hints (architecture) pick the Intel build. Safari and Firefox report "Intel Mac OS X" on every Mac, so they keep Apple Silicon and the line under the button links the other Mac build.
  • Docs: README, install, supported systems and hosting say Intel Macs come "from the next release on", which is true until a release ships with it.

Proof (Mac mini M4 Pro, x86_64 programs under Rosetta 2)

Built from main + the moving-piston build fix (#1164, merged since).

check result
lipo -archs client, ctl, prepare, server, launcher x86_64 each
otool -L: libraries outside /usr/lib and /System none (all five)
client --help, ctl --help, prepare --version/--help, server --version (release.yml's "Every program starts") pass
release smoke (--offscreen --world smoke --seed 1 --render-distance 4 --world-frames 1500) x64 5/5 pass, 7.5–12.8 s; arm64 4/4, 7.0–7.6 s (worldgen is CPU-bound: Rosetta costs some startup)
same place and view (tp 150 100 150 200 25, RD 8, 1280x720, 120 FPS cap) x64 104–110 FPS, arm64 109–112 FPS; frames identical but 0.08 % of bytes (cloud drift, max delta 39)
launcher x64 CLI under Rosetta (scratch home) versions lists every release as "no build for this platform" (none has horizon-macos-x64.zip yet, as expected); install latest: "No release has a build for this platform yet."; the launcher.yml guard takes its warning path; links, menu-style pass
launcher x64 window under Rosetta opens and draws (screenshot below; fresh scratch home, so the first-run privacy dialog)
package.sh … x64 horizon-launcher-macos-x64.zip + .dmg (hdiutil verify VALID); package.sh <x86_64 binary> … arm64 refuses

The very first x64 smoke run (the first launch of the freshly built binary) timed out: 262k frames drawn but never 1,500 world frames, so the world screen was not the active one. It didn't happen again in 5 runs, so it's most likely a first-launch event (Rosetta's first translation or a system prompt taking focus). If the CI job ever fails that way, rerunning it is the answer; the arm64 job's behaviour is unchanged.

FPS samples after ~30 s idle drop to ~27 on both builds: vanilla's AFK frame limiter, not Rosetta. The table's numbers come from before it kicks in.

x64 under Rosetta (left) and arm64 native (right), same position and view:

x64 at spawn: Launcher x64:

Self-check:

launcher: cargo fmt --check                                             OK
launcher: set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings   exit 0
launcher: cargo test --features gpui/runtime_shaders                    all pass (new: each_mac_picks_the_build_for_its_processor, platform_assets_are_published)
website: node --test src/                                               pass
actionlint release.yml launcher.yml                                     only the 2 warnings main already has (SC2034, SC2193)
tools/parity.py --changed origin/main --list                            0 of 327 harnesses (no game code changed)
workspace clippy -D warnings: this PR changes no workspace crate (ran clean on main + #1164)

Releases are frozen: I didn't run release.yml or launcher.yml, re-enable anything or create tags.

Limits, and what needs Ludovic

  • Rosetta proves the x86_64 CPU code, not an Intel Mac's GPU. Under Rosetta the game still draws on the M4's Metal GPU. Horizon asks the adapter for its own limits and optional features, so nothing known blocks Intel UHD/Iris or AMD Radeon Macs, but nobody has run it on one. Asking shellpark to try the first build is the real test.
  • The minimum system is macOS 11 (the launcher's LSMinimumSystemVersion). The game binaries are built for 10.12+.
  • The first release with this PR publishes the first Intel launcher. Its install latest only finds a game once a stable release has horizon-macos-x64.zip (beta players get it at once). Each Mac release job builds one more target on the Mac mini's runner, about 10 more minutes per release.
  • Signing: the x64 builds follow arm64 automatically once the Developer ID is set up.

Fixes #1161

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1171 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/macos-x64` --- ### 📝 Commits (4) - [`1102fa4`](https://github.com/horizon-rust/horizon/commit/1102fa42dfcca21bb248cdf6ead32ebf7424034f) macOS on Intel: x86_64 builds of the game and the launcher (#1161) - [`23f553e`](https://github.com/horizon-rust/horizon/commit/23f553e285588f1f6e239e5d8d8a9244f5857a84) Merge origin/main: Intel Mac builds in game-build.yml and the Nightly - [`13fd2ee`](https://github.com/horizon-rust/horizon/commit/13fd2ee7248f72e71bba6db9d4e8d0e7ade662cd) Merge remote-tracking branch 'origin/main' into HEAD - [`7f99b2e`](https://github.com/horizon-rust/horizon/commit/7f99b2e8cccc7bfadb44ebd5e99ad14dafaf39a0) macOS on Intel: only the Intel launcher may skip its install smoke test ### 📊 Changes **12 files changed** (+222 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/game-build.yml` (+23 -10) 📝 `.github/workflows/launcher.yml` (+36 -9) 📝 `.github/workflows/nightly-build.yml` (+4 -2) 📝 `README.md` (+2 -2) 📝 `crates/horizon-server/src/update.rs` (+2 -0) 📝 `docs/hosting.md` (+1 -1) 📝 `docs/native-mods.md` (+3 -2) 📝 `docs/release-flow.md` (+1 -0) 📝 `launcher/README.md` (+2 -2) 📝 `launcher/src/backend.rs` (+123 -25) 📝 `packaging/macos/package.sh` (+19 -9) 📝 `packaging/server/install.sh` (+6 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Horizon for Intel Macs, beside Apple Silicon: the game (`horizon-macos-x64.zip`: client, horizon-ctl, horizon-prepare, horizon-server) and the launcher (`horizon-launcher-macos-x64.zip` for self-update, `horizon-launcher-macos-x64.dmg` to install). Requested by **shellpark** on Discord (#horizon-ideas) for 2020 MacBook Pro/Air and Hackintoshes. ## How - **Separate builds, not a universal binary.** Every other asset is per architecture (`linux-x86_64`, `windows-x64`, `macos-arm64`), and a universal binary would double the download for every Apple Silicon player. `release.yml` and `launcher.yml` get a `macos-x64` matrix entry on the same Mac mini runner, cross-built with `--target x86_64-apple-darwin` (`BIN` says where the programs land). The x64 entries' checks (`--help`/`--version`, only system libraries, the launcher's tests, the game's 1,500-frame smoke test) run the x86_64 programs under Rosetta 2. - **Same unsigned path as arm64.** Signing and notarization run for x64 exactly when `MACOS_SIGN_IDENTITY` is set, as for arm64 today. - **The right asset per architecture.** The launcher's asset names now come from one table, `PLATFORMS` (OS, processor, game asset, launcher asset), resolved at compile time. So the x64 launcher installs `horizon-macos-x64.zip` and updates itself from `horizon-launcher-macos-x64.zip`, and existing arm64 launchers are unchanged. A test reads both workflows and fails if any asset in the table isn't built, signed and published. - **Release plumbing.** The x64 zip is in `SHA256SUMS` (sign job) and the release upload. Only the arm64 job uploads `smoke-test.json` (both would collide on the name), but the x64 smoke test still has to pass. - **launcher.yml smoke.** Until a *stable* game release has an Intel build, `install latest` has nothing to install on x64. The smoke test then warns and skips the install part instead of failing the whole launcher release; the install-independent checks run first. - **`packaging/macos/package.sh`** takes the architecture (`arm64` default, `x64`), names the assets after it and refuses a binary built for the other processor (`lipo -archs`). - **`packaging/server/install.sh`**: `Darwin-x86_64` gets the Intel build; a Rosetta shell on Apple Silicon (`sysctl.proc_translated`) still gets the native one. - **Website Download button**: Chromium's client hints (`architecture`) pick the Intel build. Safari and Firefox report "Intel Mac OS X" on every Mac, so they keep Apple Silicon and the line under the button links the other Mac build. - **Docs**: README, install, supported systems and hosting say Intel Macs come "from the next release on", which is true until a release ships with it. ## Proof (Mac mini M4 Pro, x86_64 programs under Rosetta 2) Built from main + the moving-piston build fix (#1164, merged since). | check | result | |---|---| | `lipo -archs` client, ctl, prepare, server, launcher | `x86_64` each | | `otool -L`: libraries outside /usr/lib and /System | none (all five) | | `client --help`, `ctl --help`, `prepare --version/--help`, `server --version` (release.yml's "Every program starts") | pass | | release smoke (`--offscreen --world smoke --seed 1 --render-distance 4 --world-frames 1500`) | x64 **5/5 pass**, 7.5–12.8 s; arm64 4/4, 7.0–7.6 s (worldgen is CPU-bound: Rosetta costs some startup) | | same place and view (`tp 150 100 150 200 25`, RD 8, 1280x720, 120 FPS cap) | x64 104–110 FPS, arm64 109–112 FPS; frames identical but 0.08 % of bytes (cloud drift, max delta 39) | | launcher x64 CLI under Rosetta (scratch home) | `versions` lists every release as "no build for this platform" (none has `horizon-macos-x64.zip` yet, as expected); `install latest`: "No release has a build for this platform yet."; the launcher.yml guard takes its warning path; `links`, `menu-style` pass | | launcher x64 window under Rosetta | opens and draws (screenshot below; fresh scratch home, so the first-run privacy dialog) | | `package.sh … x64` | `horizon-launcher-macos-x64.zip` + `.dmg` (hdiutil verify VALID); `package.sh <x86_64 binary> … arm64` refuses | The very first x64 smoke run (the first launch of the freshly built binary) timed out: 262k frames drawn but never 1,500 *world* frames, so the world screen was not the active one. It didn't happen again in 5 runs, so it's most likely a first-launch event (Rosetta's first translation or a system prompt taking focus). If the CI job ever fails that way, rerunning it is the answer; the arm64 job's behaviour is unchanged. FPS samples after ~30 s idle drop to ~27 on **both** builds: vanilla's AFK frame limiter, not Rosetta. The table's numbers come from before it kicks in. **x64 under Rosetta** (left) and **arm64 native** (right), same position and view: <img src="https://raw.githubusercontent.com/ludovic111/horizon/376c02e41fadd8b8c11d5634191806070d6a5636/macos-x64/x64-rosetta-view.png" width="49%"> <img src="https://raw.githubusercontent.com/ludovic111/horizon/376c02e41fadd8b8c11d5634191806070d6a5636/macos-x64/arm64-native-view.png" width="49%"> x64 at spawn: <img src="https://raw.githubusercontent.com/ludovic111/horizon/376c02e41fadd8b8c11d5634191806070d6a5636/macos-x64/x64-rosetta-spawn.png" width="49%"> Launcher x64: <img src="https://raw.githubusercontent.com/ludovic111/horizon/376c02e41fadd8b8c11d5634191806070d6a5636/macos-x64/launcher-x64-rosetta.png" width="45%"> Self-check: ``` launcher: cargo fmt --check OK launcher: set -o pipefail; cargo clippy --all-targets --features gpui/runtime_shaders -- -D warnings exit 0 launcher: cargo test --features gpui/runtime_shaders all pass (new: each_mac_picks_the_build_for_its_processor, platform_assets_are_published) website: node --test src/ pass actionlint release.yml launcher.yml only the 2 warnings main already has (SC2034, SC2193) tools/parity.py --changed origin/main --list 0 of 327 harnesses (no game code changed) workspace clippy -D warnings: this PR changes no workspace crate (ran clean on main + #1164) ``` Releases are frozen: I didn't run release.yml or launcher.yml, re-enable anything or create tags. ## Limits, and what needs Ludovic - **Rosetta proves the x86_64 CPU code, not an Intel Mac's GPU.** Under Rosetta the game still draws on the M4's Metal GPU. Horizon asks the adapter for its own limits and optional features, so nothing known blocks Intel UHD/Iris or AMD Radeon Macs, but nobody has run it on one. Asking shellpark to try the first build is the real test. - The minimum system is macOS 11 (the launcher's `LSMinimumSystemVersion`). The game binaries are built for 10.12+. - The first release with this PR publishes the first Intel launcher. Its `install latest` only finds a game once a *stable* release has `horizon-macos-x64.zip` (beta players get it at once). Each Mac release job builds one more target on the Mac mini's runner, about 10 more minutes per release. - Signing: the x64 builds follow arm64 automatically once the Developer ID is set up. Fixes #1161 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3387
No description provided.