GitHub CI [Mac]: Try to fix notarization failures

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.
This commit is contained in:
Martin Pulec
2021-04-27 11:53:19 +02:00
parent 1a3b1c9e71
commit 1b286fd1dd

View File

@@ -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/