Skip to content

fix: make notarized Mac packaging pass: sign onnxruntime, check engine notarization - #21

Merged
Alex793x merged 2 commits into
devfrom
fix/sign-bundled-mac-libraries
Nov 23, 2026
Merged

Alex793x merged 2 commits into
devfrom
fix/sign-bundled-mac-libraries

Conversation

@Alex793x

@Alex793x Alex793x commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Apple rejected the notarized beta.21 Mac build because libonnxruntime.1.23.2.dylib and onnxruntime_binding.node in retriever-runtime had no Developer ID signature or secure timestamp. Public packaging signed only the bundled Node.

Now prepareMacSigning signs every native binary in the bundled dist-* folders (Node keeps its own entitlement signing), then records the new fingerprints in that folder's provenance.json, keeping unsignedSha256, because the app verifies those files before loading local search.

Tests: two new cases in tests/macos-release-trust.test.ts (which files get signed; fingerprints recorded). Full suite: 1,516 passed, 0 failed. Typecheck clean.

🤖 Generated with Claude Code


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…[skip ci]

Apple rejected the beta.21 Mac build: libonnxruntime.1.23.2.dylib and
onnxruntime_binding.node in retriever-runtime had no Developer ID
signature or secure timestamp. Public packaging signed only the bundled
Node. It now signs every native binary in the bundled dist-* folders the
same way, then writes their new fingerprints into the folder's
provenance.json (keeping the unsigned ones), because MemCode checks those
files against it before loading local search.

beta.20 got through only because its notarized build was re-signed by
hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@blocksorg

blocksorg Bot commented Nov 23, 2026

Copy link
Copy Markdown

Mention Blocks like a regular teammate with your question or request:

@blocks review this pull request
@blocks make the following changes ...
@blocks create an issue from what was mentioned in the following comment ...
@blocks explain the following code ...
@blocks are there any security or performance concerns?

Run @blocks /help for more information.

Workspace settings | Disable this message

The public Mac check ran Gatekeeper's app assessment on the four engine
programs extracted from engine.zip. macOS always answers "valid but does
not seem to be an app" for command-line tools, so a correctly signed and
notarized engine failed the beta.21 build every time. It now asks
codesign whether Apple notarized each one (=notarized requirement).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Alex793x Alex793x changed the title fix: sign the bundled onnxruntime libraries for notarized Mac builds fix: make notarized Mac packaging pass: sign onnxruntime, check engine notarization Nov 23, 2026
@Alex793x

Copy link
Copy Markdown
Contributor Author

Added fix: check the engine's programs for notarization, not as apps: the public check ran spctl --assess --type execute on the engine's command-line programs, which macOS always rejects as "does not seem to be an app". It now uses codesign --test-requirement==notarized. With both fixes, the beta.21 Mac build (from 78f4c5c) was notarized by Apple for the app and the DMG. Full suite: 1,517 passed, 0 failed.

@Alex793x
Alex793x merged commit b5c2158 into dev Nov 23, 2026
1 check passed
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.

1 participant