ci: sign and notarize macOS release builds#289
Merged
Conversation
Pass the Developer ID Application certificate and App Store Connect API key to tauri-action so the macOS .app and .dmg are code-signed and notarized during the release build. The API key is decoded from a base64 secret into a temp file on the macOS runners only. The Apple env vars are harmless on the Linux and Windows jobs since tauri only consumes them when bundling for macOS.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
The changes are clean and well-structured. The macOS-only API key preparation step is correctly gated with Reviewed by kimi-k2.6-20260420 · 137,515 tokens |
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.
What
macOS release builds are now code-signed with a Developer ID Application certificate and notarized through App Store Connect, so users no longer hit Gatekeeper warnings when opening the app.
How
tauri-actionalready handles signing and notarization when the right environment variables are present, so this wires them up:.p8) from a base64 secret into a temp file and exports its path.tauri-actionviaenv.Notarization uses an App Store Connect API key rather than an Apple ID app-specific password, since the key doesn't expire and is easier to rotate in CI.
The Apple variables are set for every matrix entry but only take effect on the macOS jobs — tauri ignores them when bundling for Linux and Windows.
Required secrets
These must be added in repo settings before the next tagged release:
APPLE_CERTIFICATE.p12APPLE_CERTIFICATE_PASSWORD.p12APPLE_SIGNING_IDENTITYDeveloper ID Application: Name (TEAMID)APPLE_API_ISSUERAPPLE_API_KEYAPPLE_API_KEY_CONTENT.p8key fileTesting
Not exercisable from a PR — needs a tagged release (or a
workflow_dispatchrun) once the secrets are in place. After a build, the DMG can be verified withspctl -a -t installandxcrun stapler validate.