Skip to content

Add tools/try-local to build and open the Mac app without CI - #385

Merged
v0lumehi merged 2 commits into
mainfrom
fix/try-local
Nov 1, 2026
Merged

v0lumehi merged 2 commits into
mainfrom
fix/try-local

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

What and why

I want to try a change in the Mac app before it is pushed, without waiting for CI. A runner takes about 3.5 minutes to start and the build 7 more.

tools/try-local builds the app from the checkout and opens it, like tools/try-pr does for a CI build. It builds the engine tree and the launcher, takes the bundled tools from bundle_tools.sh, assembles the bundle as the workflow does, signs ad-hoc and runs check_bundle.sh. The version is <appVersion>-local. It prints the time of each step and the total. The bundled tools are cached in ~/Library/Caches/NX2Apple-try-local by the hash of bundle_tools.sh and its pins, and so is the icon. Flags: --no-open, --dir, --own-repo, --clean.

It is not a release. It writes no latest.json, signs nothing with an engine key, and touches no tag. An rc tag still needs CI and the owner's key. Without a latest.json the app opens with the engine it carries, with the same launch arguments as try-pr.

The script duplicates the assemble step of the workflow. A test fails when the Info.plist keys differ. I did not change the workflow. AGENTS.md and RELEASING.md have a short note.

Checked

  • Tests: python3 -m unittest discover tools/tests passes (124 tests, 4 new for the cache key, the version, the plist drift and no signing). No Swift change.
  • Visual QA: Not applicable.
  • Run on a Mac: built and opened on an Apple silicon Mac with Xcode (actool compiled the icon here). Cold run (empty cache) 239 s, of which the bundled tools took 83 s and the Swift build 94 s. Warm run 59 s, 64 s with opening. The app process stayed up 6 s after open. I did not see its window, the screenshot was not permitted. Not checked: an Intel Mac, and an Xcode older than the one here for the icon (the script falls back to the generic icon and says so).

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository: a change there is a patch in patches/ (a commit in engine/, then tools/engine.py export, and tools/engine.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: this PR's patch says forwarded seedds/nxnative#..., or pending until that PR is open (not applicable, no patch)
  • A change to a launcher view has before and after screenshots above (not applicable, no view changed)
  • No keys, game files or data extracted from a game in the change or the attachments

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 1, 2026
@v0lumehi
v0lumehi merged commit caa2ad0 into main Nov 1, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the fix/try-local branch November 1, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant