From 1b286fd1ddf554e15db7004ee9de6a1594fa3b85 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 27 Apr 2021 11:53:19 +0200 Subject: [PATCH] GitHub CI [Mac]: Try to fix notarization failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://developer.apple.com/forums/thread/677739: [...] does supplying a different value for --primary-bundle-id clear the problem? IMPORTANT The notary service doesn’t actually require this bundle ID be related to the software that you’re notarising, so you can use any reasonable bundle ID. --- .github/scripts/macOS/sign.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/macOS/sign.sh b/.github/scripts/macOS/sign.sh index d5658b049..05ac79521 100755 --- a/.github/scripts/macOS/sign.sh +++ b/.github/scripts/macOS/sign.sh @@ -44,7 +44,7 @@ REQUEST_INFO_PLIST=/tmp/reqinfo.plist ditto -c -k --keepParent $APP $ZIP_FILE DEVELOPER_USERNAME=$(echo "$altool_credentials" | cut -d: -f1) DEVELOPER_PASSWORD=$(echo "$altool_credentials" | cut -d: -f2) -xcrun altool --notarize-app --primary-bundle-id cz.cesnet.ultragrid.uv-qt --username $DEVELOPER_USERNAME --password "$DEVELOPER_PASSWORD" --file $ZIP_FILE --output-format xml | tee $UPLOAD_INFO_PLIST +xcrun altool --notarize-app --primary-bundle-id cz.cesnet.ultragrid.uv-qt-$(uuidgen | tr A-Z a-z) --username $DEVELOPER_USERNAME --password "$DEVELOPER_PASSWORD" --file $ZIP_FILE --output-format xml | tee $UPLOAD_INFO_PLIST # Wait for notarization status # Waiting inspired by https://nativeconnect.app/blog/mac-app-notarization-from-the-command-line/