Repository navigation
Keep spirv-cross unsigned-by-us in the app's engine so it matches the lock - #355
Merged
Merged
Conversation
The app build signed every Mach-O file of the engine tree, spirv-cross included. That changes its bytes, and dmsh_chain.lock records the bytes the linker signed. Every build in the release app stopped with: translation chain tools do not match the lock file: spirv-cross. The file now stays as built, and the step checks that it did.
v0lumehi
added a commit
to Dino0005/NX2Apple
that referenced
this pull request
Oct 31, 2026
LNPANDY#355 skipped spirv-cross in the signing loop and added a cmp. sign_engine_tree.sh replaces that loop and checks every file of the bundle, so its side stays.
3 of 6 tasks
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
A build in the release app (seen on 0.8.0-rc, BotW) stops at the shader step with
translation chain tools do not match the lock file: spirv-cross: lock e37945d8e441d34d / actual 494d7b19af07fbc3.The cause is in the app build, not in the engine. The step that bundles the engine tree signs every Mach-O file in it with
codesign --force --sign -, spirv-cross included. The signature changes the file's bytes.dmsh_chain.lockrecords the hash of the file as the linker signed it, andtool_lock.py --check-toolscompares the bytes. The copy in/Applications/NX2Apple.app/Contents/Resources/engine(and the one the app copies to Application Support) has the hash494d..., the unsigned build in a checkout hase379....The change skips spirv-cross in the signing loop and adds a
cmpto the step that fails the build if the bundled file differs from the engine tree. spirv-cross is signed already, aslinker-signedad hoc, so it runs on Apple Silicon without the second signature. The translator and the other Mach-O files are signed as before. This is the fork's own workflow, so there is no patch and no upstream PR.Checked
buildjob of this PR runs the changed step as a dry run.Screenshots
None, no visible change.
Scope
dm/,scripts/,docs/,ref/) is added to the repository