From 851e1c9dfa64590d808202b9f58e8526e80cbe51 Mon Sep 17 00:00:00 2001 From: Antxis77 <64417162+Antxis77@users.noreply.github.com> Date: Sat, 17 Oct 2026 14:15:17 +0200 Subject: [PATCH] Notarize and staple the DMG in release-macos.sh Tauri only notarizes the .app; the DMG was signed but unnotarized. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Antxis77 <64417162+Antxis77@users.noreply.github.com> --- rust/app/scripts/release-macos.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rust/app/scripts/release-macos.sh b/rust/app/scripts/release-macos.sh index 086b8ea..b7da73c 100755 --- a/rust/app/scripts/release-macos.sh +++ b/rust/app/scripts/release-macos.sh @@ -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"