Skip to content

Add macOS standalone builder support and instructions - #39

Closed
andresflopaez1255 wants to merge 1 commit into
ZallaxDev:devfrom
andresflopaez1255:feature/macos-support
Closed

andresflopaez1255 wants to merge 1 commit into
ZallaxDev:devfrom
andresflopaez1255:feature/macos-support

Conversation

@andresflopaez1255

Copy link
Copy Markdown

This PR adds support for generating a macOS PyInstaller executable in the tools/build_release.py script, and adds documentation on how macOS users can avoid the 'App Translocation' security feature which causes the builder to error stating the payload is missing. Tested locally on macOS.

@ZallaxDev ZallaxDev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andresflopaez1255! Windows output is unchanged. A few things are needed before it can go in:

  1. The strict audit run by build_release.py only allows Emerald3DS-v*-Windows/... in tools/release_audit_allow.toml, so a -macOS/-Linux build fails it. Please add the matching globs and show a full build_release.py run on macOS that passes the audit.
  2. Please don't produce a -Linux ZIP: as documented, Linux runs from source. Keep Windows as the default and make macOS opt-in (e.g. --platform macOS).
  3. Official releases are built on Windows only, so the macOS section of INSTALLATION.md would point to an asset that doesn't exist. Please mark it "if you build it yourself" (and reconsider the xattr -cr advice), or leave the docs out until macOS ZIPs are published.
  4. Please update RELEASING.md and the docstring at build_release.py:15.
  5. Please retarget to dev and rebase after the French PR (#43), which rewrites much of build_release.py.

- Add --platform {Windows,macOS} flag to tools/build_release.py (defaults to Windows)
- Add Emerald3DS-v*-macOS globs to tools/release_audit_allow.toml
- Document --platform macOS in docs/RELEASING.md and tools/build_release.py
- Document macOS standalone builder instructions under docs/INSTALLATION.md
@andresflopaez1255
andresflopaez1255 changed the base branch from main to dev October 15, 2026 00:43
@andresflopaez1255

Copy link
Copy Markdown
Author

Hi @ZallaxDev! Thanks for the review. All points have been addressed:

  1. Rebased & Retargeted: Rebased onto dev after French: complete port menus, accents and locale tables (follow-up to #34) #43 and changed the PR base to dev.
  2. Platform opt-in: Added --platform {Windows,macOS} to tools/build_release.py (defaults to Windows; macOS is opt-in, no Linux zip produced).
  3. Audit allowlist: Added matching Emerald3DS-v*-macOS globs to tools/release_audit_allow.toml for executables and the PyInstaller runtime.
  4. Documentation & docstrings:
    • Updated the docstring and synopsis in tools/build_release.py.
    • Updated docs/RELEASING.md mentioning --platform macOS.
    • Updated docs/INSTALLATION.md under a subsection clearly marked (if you build the standalone package yourself), explaining that official releases are built for Windows and replacing recursive xattr -cr with specific quarantine removal guidance.

Here is the log of build_release.py passing the strict audit on macOS:

+ python3 tools/build_release.py --version 0.3.1 --rom synthetic-rom.bin --gba-elf ... --skip-make --skip-recipe --skip-cia --platform macOS
...
+ tools/release_audit.py --zip dist/Emerald3DS-v0.3.1-macOS.zip --strict --rom synthetic-rom.bin
release_audit: indexing ROM windows...
release_audit: 457 files checked in dist/Emerald3DS-v0.3.1-macOS.zip (0 denylist patterns, ROM scan)
release_audit: clean
+ tools/release_audit.py --zip dist/Emerald3DS-WebPayload.zip --strict --rom synthetic-rom.bin --web-payload
release_audit: indexing ROM windows...
release_audit: 39 files checked in dist/Emerald3DS-WebPayload.zip (0 denylist patterns, ROM scan)
release_audit: clean
release asset: dist/Emerald3DS-v0.3.1-macOS.zip (26.2 MiB)
release asset: dist/Emerald3DS.3dsx (0.0 MiB)
release asset: dist/Emerald3DS.smdh (0.0 MiB)
release asset: dist/Emerald3DS-WebPayload.zip (0.4 MiB)
release asset: dist/web-manifest.json (0.0 MiB)
release asset: dist/SHA256SUMS.txt

@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks again, @andresflopaez1255, and sorry this sat for so long after you addressed the review! It has fallen behind again, and the project has since moved its PR base to integration. Could you:

  1. Rebase onto integration and change the PR base to integration.
  2. Add the macOS counterparts of the allowlist entries added since then in tools/release_audit_allow.toml: payload/emerald3ds.recipe, payload/*/emerald3ds.recipe and payload/voxelgen/assets/voxel/relief_fixes.json.
  3. Move the macOS note in docs/INSTALLATION.md into the existing "Linux and macOS" section, as an alternative to the web builder (emerald-3ds.com), which stays the recommended route.

With that it looks ready to merge on our side.

@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks a lot @andresflopaez1255 for the original implementation and testing! #295 carries your original commit forward with your authorship and completes the review against the current integration branch, so we're closing this one as superseded by #295.

@ZallaxDev ZallaxDev closed this Nov 21, 2026
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.

2 participants