Repository navigation
Add tools/try-local to build and open the Mac app without CI - #385
Merged
Merged
Conversation
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.
Fix or 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-localbuilds the app from the checkout and opens it, liketools/try-prdoes for a CI build. It builds the engine tree and the launcher, takes the bundled tools frombundle_tools.sh, assembles the bundle as the workflow does, signs ad-hoc and runscheck_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-localby the hash ofbundle_tools.shand 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 alatest.jsonthe app opens with the engine it carries, with the same launch arguments astry-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
python3 -m unittest discover tools/testspasses (124 tests, 4 new for the cache key, the version, the plist drift and no signing). No Swift change.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
dm/,scripts/,docs/,ref/) is added to the repository: a change there is a patch inpatches/(a commit inengine/, thentools/engine.py export, andtools/engine.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#..., orpendinguntil that PR is open (not applicable, no patch)