Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rust/app/scripts/release-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,16 @@ echo "--- vérifications"
codesign --verify --strict --deep "$app"
spctl --assess --type execute -vv "$app"
xcrun stapler validate "$app"

# Tauri ne notarise que l'app : le DMG lui-même est soumis et agrafé ici.
echo "--- notarisation du DMG"
if [[ -n "${APPLE_API_KEY:-}" ]]; then
xcrun notarytool submit "$dmg" --wait \
--key "$APPLE_API_KEY_PATH" --key-id "$APPLE_API_KEY" --issuer "$APPLE_API_ISSUER"
else
xcrun notarytool submit "$dmg" --wait \
--apple-id "$APPLE_ID" --password "$APPLE_PASSWORD" --team-id "$APPLE_TEAM_ID"
fi
xcrun stapler staple "$dmg"
spctl --assess --type open --context context:primary-signature -vv "$dmg"
echo "OK : $dmg"
Loading