Skip to content

Keep spirv-cross unsigned-by-us in the app's engine so it matches the lock - #355

Merged
v0lumehi merged 1 commit into
mainfrom
fix/app-engine-spirv-cross-lock
Oct 31, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
fix/app-engine-spirv-cross-lock

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • 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.lock records the hash of the file as the linker signed it, and tool_lock.py --check-tools compares the bytes. The copy in /Applications/NX2Apple.app/Contents/Resources/engine (and the one the app copies to Application Support) has the hash 494d..., the unsigned build in a checkout has e379....

The change skips spirv-cross in the signing loop and adds a cmp to the step that fails the build if the bundled file differs from the engine tree. spirv-cross is signed already, as linker-signed ad 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

  • Tests: no test covers the workflow. The build job of this PR runs the changed step as a dry run.
  • Visual QA: none, no visible change.
  • Run on a device or Mac: I compared the hashes in the installed 0.8.0 app and in a checkout. I did not run a build from a fixed app yet.

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: not an engine change
  • A change to a launcher view has before and after screenshots above: no launcher view changes
  • No keys, game files or data extracted from a game in the change or the attachments

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.
@github-actions github-actions Bot added the ci Workflows and repository tooling label Oct 31, 2026
@v0lumehi
v0lumehi merged commit 93a4f76 into main Oct 31, 2026
12 checks passed
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.
@v0lumehi
v0lumehi deleted the fix/app-engine-spirv-cross-lock branch November 1, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows and repository tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant