From ab4e606680ae771ad663d0f12af4d896ebae5b28 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sun, 21 Jun 2026 00:45:01 +0200 Subject: [PATCH] add checks --- .ci/sign_macos_bundle.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ci/sign_macos_bundle.sh b/.ci/sign_macos_bundle.sh index 344f27cb7..55e5f713c 100755 --- a/.ci/sign_macos_bundle.sh +++ b/.ci/sign_macos_bundle.sh @@ -33,6 +33,10 @@ if [[ -n "$MACOS_CERTIFICATE_NAME" ]]; then echo "::group::Sign app bundle" security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain /usr/bin/codesign --sign="$MACOS_CERTIFICATE_NAME" --entitlements=".ci/macos.entitlements" --options=runtime --force --deep --timestamp --verbose "$APP_BUNDLE_PATH" + + # Verify signature + codesign --verify --deep --strict --verbose=2 "$APP_BUNDLE_PATH" + spctl -a -v --type install "$APP_BUNDLE_PATH" echo "::endgroup::" else echo "::error file=$0::MACOS_CERTIFICATE_NAME not set. Can not sign app bundle." @@ -63,6 +67,9 @@ if [[ -n "$MACOS_NOTARIZATION_APPLE_ID" ]]; then # validated by macOS even when an internet connection is not available. echo "Attach staple" xcrun stapler staple "$APP_BUNDLE_PATH" + + # Validate staple + xcrun stapler validate "$APP_BUNDLE_PATH" echo "::endgroup::" else echo "::error file=$0::MACOS_NOTARIZATION_APPLE_ID not set. Can not notarize app bundle."