Search
Problem
First-time macOS users cannot open Lite through the normal Gatekeeper confirmation. They must instead open System Settings > Privacy & Security and manually allow the app.
Lite currently configures Tauri with bundle.macOS.signingIdentity: "-", which creates an ad-hoc signature. The published v0.0.22 application confirmed this:
Signature=adhoc
TeamIdentifier=not set
Lite.app: rejected
TAURI_SIGNING_PRIVATE_KEY signs Tauri updater artifacts. It is separate from Apple Developer ID signing and does not establish Gatekeeper trust.
Required Apple setup
Using the Ultralytics paid Apple Developer account:
- The Account Holder creates a Developer ID Application certificate using a CSR generated on a controlled Mac.
- Install the certificate in Keychain Access and export the certificate plus private key as a password-protected
.p12.
- Create a team App Store Connect API key with Developer access for notarization and download its
.p8 private key. Do not use an individual API key because it cannot authenticate notarytool.
A Developer ID Installer certificate is not needed because Lite distributes a DMG rather than a PKG.
Add these GitHub Actions secrets, preferably in a protected release environment:
| Secret |
Value |
APPLE_CERTIFICATE |
Base64-encoded .p12 |
APPLE_CERTIFICATE_PASSWORD |
Password used to export the .p12 |
APPLE_SIGNING_IDENTITY |
Full Developer ID Application: ... (TEAMID) identity |
APPLE_API_ISSUER |
App Store Connect issuer UUID |
APPLE_API_KEY |
App Store Connect key ID |
APPLE_API_PRIVATE_KEY |
Complete contents of the downloaded .p8 |
Implementation
Extend the existing macOS entry in .github/workflows/publish.yml; do not create another release path:
- Remove the ad-hoc
bundle.macOS.signingIdentity: "-" setting from src-tauri/tauri.conf.json.
- On the macOS runner only, import
APPLE_CERTIFICATE into a temporary keychain and make it available to codesign.
- Write
APPLE_API_PRIVATE_KEY to a permission-restricted file under $RUNNER_TEMP and expose its path as APPLE_API_KEY_PATH.
- Pass
APPLE_SIGNING_IDENTITY, APPLE_API_ISSUER, APPLE_API_KEY, and APPLE_API_KEY_PATH to the existing Tauri build. Tauri should own signing, notarization, and stapling.
- Keep the existing Tauri updater signing variables and
latest.json flow unchanged.
- Fail the macOS build before publishing the draft release if signing, notarization, stapling, or verification fails. Never fall back to ad-hoc signing when Apple credentials are absent.
No additional macOS entitlements are expected initially. Add only an entitlement required by an observed signing/notarization failure or a capability Lite actually uses.
Release verification
Run these checks against the generated application and DMG before the release is published:
codesign --verify --deep --strict --verbose=2 Lite.app
codesign --display --verbose=4 Lite.app
spctl --assess --type execute --verbose=4 Lite.app
xcrun stapler validate Lite.app
xcrun stapler validate Lite.dmg
spctl --assess --type open --context context:primary-signature --verbose=4 Lite.dmg
Then download the release DMG through a browser on a clean Mac, install Lite, and confirm:
codesign reports the Ultralytics Developer ID authority and a Team ID, not Signature=adhoc.
spctl accepts the application as a notarized Developer ID build.
- The browser-downloaded app opens through the ordinary macOS confirmation with an Open button; it does not require Open Anyway in System Settings.
- Updating from the preceding Lite release still succeeds through the existing signed Tauri updater.
- The README's unsigned-app workaround is removed only after the published artifact passes the clean-machine check.
References
Search
Problem
First-time macOS users cannot open Lite through the normal Gatekeeper confirmation. They must instead open System Settings > Privacy & Security and manually allow the app.
Lite currently configures Tauri with
bundle.macOS.signingIdentity: "-", which creates an ad-hoc signature. The published v0.0.22 application confirmed this:TAURI_SIGNING_PRIVATE_KEYsigns Tauri updater artifacts. It is separate from Apple Developer ID signing and does not establish Gatekeeper trust.Required Apple setup
Using the Ultralytics paid Apple Developer account:
.p12..p8private key. Do not use an individual API key because it cannot authenticatenotarytool.A Developer ID Installer certificate is not needed because Lite distributes a DMG rather than a PKG.
Add these GitHub Actions secrets, preferably in a protected
releaseenvironment:APPLE_CERTIFICATE.p12APPLE_CERTIFICATE_PASSWORD.p12APPLE_SIGNING_IDENTITYDeveloper ID Application: ... (TEAMID)identityAPPLE_API_ISSUERAPPLE_API_KEYAPPLE_API_PRIVATE_KEY.p8Implementation
Extend the existing macOS entry in
.github/workflows/publish.yml; do not create another release path:bundle.macOS.signingIdentity: "-"setting fromsrc-tauri/tauri.conf.json.APPLE_CERTIFICATEinto a temporary keychain and make it available tocodesign.APPLE_API_PRIVATE_KEYto a permission-restricted file under$RUNNER_TEMPand expose its path asAPPLE_API_KEY_PATH.APPLE_SIGNING_IDENTITY,APPLE_API_ISSUER,APPLE_API_KEY, andAPPLE_API_KEY_PATHto the existing Tauri build. Tauri should own signing, notarization, and stapling.latest.jsonflow unchanged.No additional macOS entitlements are expected initially. Add only an entitlement required by an observed signing/notarization failure or a capability Lite actually uses.
Release verification
Run these checks against the generated application and DMG before the release is published:
Then download the release DMG through a browser on a clean Mac, install Lite, and confirm:
codesignreports the Ultralytics Developer ID authority and a Team ID, notSignature=adhoc.spctlaccepts the application as a notarized Developer ID build.References