|
|
|
@ -28,7 +28,8 @@ RESULT=$(xcrun altool --notarize-app --type osx \ |
|
|
|
--primary-bundle-id org.electrum.electrum \ |
|
|
|
--primary-bundle-id org.electrum.electrum \ |
|
|
|
--username $APPLE_ID_USER \ |
|
|
|
--username $APPLE_ID_USER \ |
|
|
|
--password @env:APPLE_ID_PASSWORD \ |
|
|
|
--password @env:APPLE_ID_PASSWORD \ |
|
|
|
--output-format xml) |
|
|
|
--output-format xml |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then |
|
|
|
if [ $? -ne 0 ]; then |
|
|
|
echo "Submitting $APP_BUNDLE failed:" |
|
|
|
echo "Submitting $APP_BUNDLE failed:" |
|
|
|
@ -37,7 +38,8 @@ if [ $? -ne 0 ]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
REQUEST_UUID=$(echo "$RESULT" | xpath \ |
|
|
|
REQUEST_UUID=$(echo "$RESULT" | xpath \ |
|
|
|
"//key[normalize-space(text()) = 'RequestUUID']/following-sibling::string[1]/text()" 2> /dev/null) |
|
|
|
"//key[normalize-space(text()) = 'RequestUUID']/following-sibling::string[1]/text()" 2>/dev/null |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$REQUEST_UUID" ]; then |
|
|
|
if [ -z "$REQUEST_UUID" ]; then |
|
|
|
echo "Submitting $APP_BUNDLE failed:" |
|
|
|
echo "Submitting $APP_BUNDLE failed:" |
|
|
|
@ -56,9 +58,11 @@ do |
|
|
|
RESULT=$(xcrun altool --notarization-info "$REQUEST_UUID" \ |
|
|
|
RESULT=$(xcrun altool --notarization-info "$REQUEST_UUID" \ |
|
|
|
--username "$APPLE_ID_USER" \ |
|
|
|
--username "$APPLE_ID_USER" \ |
|
|
|
--password @env:APPLE_ID_PASSWORD \ |
|
|
|
--password @env:APPLE_ID_PASSWORD \ |
|
|
|
--output-format xml) |
|
|
|
--output-format xml |
|
|
|
|
|
|
|
) |
|
|
|
STATUS=$(echo "$RESULT" | xpath \ |
|
|
|
STATUS=$(echo "$RESULT" | xpath \ |
|
|
|
"//key[normalize-space(text()) = 'Status']/following-sibling::string[1]/text()" 2> /dev/null) |
|
|
|
"//key[normalize-space(text()) = 'Status']/following-sibling::string[1]/text()" 2>/dev/null |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if [ "$STATUS" = "success" ]; then |
|
|
|
if [ "$STATUS" = "success" ]; then |
|
|
|
echo "Notarization of $APP_BUNDLE succeeded!" |
|
|
|
echo "Notarization of $APP_BUNDLE succeeded!" |
|
|
|
|