Finalize script and apply to all workflows

This commit is contained in:
FriwiDev
2022-02-25 16:36:33 +01:00
parent 7d912fc419
commit 3a563f21b4
4 changed files with 29 additions and 9 deletions

View File

@@ -36,9 +36,12 @@ requestUUID=$(xcrun altool --notarize-app \
--file "$1.zip" 2>&1 \
| awk '/RequestUUID/ { print $NF; }')
# --asc-provider "$3" \
echo "Notarization RequestUUID: $requestUUID"
# clean up zip
rm -f "$APP_NAME.zip"
if [[ $requestUUID == "" ]]; then
echo "Could not upload for notarization"
exit 1
@@ -48,7 +51,7 @@ fi
request_status="in progress"
while [[ "$request_status" == "in progress" ]]; do
echo -n "waiting... "
sleep 10
sleep 60
request_status=$(xcrun altool --notarization-info "$requestUUID" \
--apiKey "$5" \
--apiIssuer "$6" 2>&1 \
@@ -70,7 +73,4 @@ fi
# staple
xcrun stapler staple "$1"
# clean up
rm -f "$APP_NAME.zip"
echo "##########################################################"