Skip to content

Add initial macOS support for Apple Silicon - #27

Merged
elripalda merged 9 commits into
elripalda:mainfrom
thehobbit85:codex/macos-support
Nov 8, 2026
Merged

elripalda merged 9 commits into
elripalda:mainfrom
thehobbit85:codex/macos-support

Conversation

@thehobbit85

@thehobbit85 thehobbit85 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Refs #6. Builds on the CI work in #24, whose existing commit is included as a dependency.

This adds initial Apple Silicon macOS support with .app and .dmg builds. Previously, Zelda 64: Recompiled’s Mac download installed only its inner ZIP and Play could not find a program. The launcher now unwraps packaging-only nested ZIPs, preserves complete signed app bundles and framework links, and selects the executable declared by the app.

  • Detect native/universal Mach-O programs and accept .app bundles in Choose Program and Set Up By Hand. Replace whole bundles during updates while retaining saves/settings outside them.
  • Validate archive paths and links before installation; prevent writes through archive or existing destination links.
  • Route launcher updates through explicit Mac/architecture metadata, with manual downloads. Hide unsupported overlay/capture controls and irrelevant AVX2 advice.
  • Extend feat: add PR tests and installer artifacts for Windows and Linux #24’s PR checks workflow with macos-15 in the same Windows/Linux/Mac matrix. All three jobs run Rust and UI tests and upload installer artifacts for 14 days. The Mac artifact includes an app ZIP, DMG and checksums. There is no separate Mac workflow.
  • Document the three required check names, build instructions and initial support limits.

Rebased onto upstream beta.24 (84626cb). The conflict resolution preserves both the new upstream version comparison and the Mac update selector. Executable-detection rules advance to revision 16 because upstream now uses revision 15.

Validation on macOS 26.6, arm64:

  • 232 Rust tests passed (1 ignored); binary and documentation test targets passed; 8 UI tests passed.
  • Actionlint passed for the combined workflow; JavaScript syntax and whitespace checks passed.
  • Native app and DMG built locally using the shared workflow’s build command; strict app signature and installer packaging checks passed.

Runtime smoke tests performed during the original Mac implementation, before the latest upstream rebase:

  • A fresh install of official Zelda v1.2.2 passed its download checksum and app signature checks, auto-selected the executable, accepted a local game copy, reached the title/existing save menus, and returned control to the launcher with play tracking after exit. Relaunch worked.
  • Changed the installed game to v1.2.1 and back to v1.2.2. The final signature validated, a stale bundle resource was removed, a save beside the bundle survived, and all six game Application Support files kept their original hashes.
  • Selected the installed .app through Choose Program. Catalog search and foreground game-detail/Back navigation worked. No animation workaround is included.

Zelda v1.2.2 itself has the known Mac shutdown crash, also reproduced in direct launches before this change. The launch test does not claim a clean game exit. This PR does not modify the game. No game binaries, ROMs, or private crash reports are included.

Initial limits: Apple Silicon launcher only; game installation supports ZIP releases, not DMG game installers. Intel-only games/Rosetta, Mac overlays/screenshots, Apple Developer ID/notarization, official release publishing and automatic launcher replacement are outside this change. Test builds use ad-hoc signing. Windows/Linux native builds have not been run locally.

GitHub has not scheduled hosted checks for this PR; the validation above is local. A repository administrator must configure the documented required checks to enforce them before merging.

@thehobbit85
thehobbit85 marked this pull request as ready for review November 8, 2026 00:06
@Xarishark

Copy link
Copy Markdown
Collaborator

GJ! Be sure to check this PR #24 as you are also adding a mac building action. just so they are in line.

@thehobbit85

Copy link
Copy Markdown
Contributor Author

@Xarishark, aligned with #24 in f518332, following up on your comment. This branch now includes #24’s existing CI commit (b6c360f) and adds macos-15 to the same .github/workflows/ci.yml matrix as Windows and Linux. The separate Mac workflow is removed.

All three jobs run Rust and UI tests and upload installers-<runner> artifacts with the same 14-day retention. The Mac job verifies Apple Silicon and packages the ad-hoc-signed app ZIP, DMG and checksums. The build docs now list all three required check names.

Also rebased onto current main (84626cb, beta.24) and resolved the conflict while preserving the upstream changes. Local Mac validation: actionlint, 232 Rust tests (1 ignored), 8 UI tests, JavaScript syntax checks, app/DMG build, strict app signature, DMG integrity and ZIP round-trip checks all passed. Windows/Linux runner builds remain unverified locally.

GitHub has not scheduled hosted checks for this PR yet; the validation above was run locally.

@Xarishark

Copy link
Copy Markdown
Collaborator

Adding some notes myself convert it to draft until then if you can

@Xarishark

Copy link
Copy Markdown
Collaborator

Ok merge my PR when you want and you can mark this as ready also.

@Xarishark

Copy link
Copy Markdown
Collaborator

thehobbit85#1

@elripalda
elripalda merged commit a3eff40 into elripalda:main Nov 8, 2026
@elripalda elripalda mentioned this pull request Nov 8, 2026
@thehobbit85
thehobbit85 deleted the codex/macos-support branch November 20, 2026 05:59
@Xarishark

Copy link
Copy Markdown
Collaborator

@thehobbit85 you never merged my PR and the fixes never arrived there for macOS...

@thehobbit85

thehobbit85 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@Xarishark I'm really sorry I missed your follow-up PR and left your fixes out. I probably overlooked it because #27 got merged before I had a chance to properly check it. I should have gone back and made sure your work was included—that's on me. I'm sorry you had to chase this up and bring the fixes forward again in #361. I appreciate the work you put into this.

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.

3 participants