Show notarytool logs

This commit is contained in:
FriwiDev
2022-11-01 05:28:56 +01:00
parent 7b7fe2c47e
commit 611beff7ca
3 changed files with 15 additions and 7 deletions

View File

@@ -33,7 +33,18 @@ xcrun notarytool submit "$1.zip" \
--key $6 \
--key-id $5 \
--issuer $7 \
--wait
--wait 2>&1 | tee notary_output.txt
requestUUID=$(cat notary_output.txt | awk '/id:/ { print $NF; exit; }')
echo "Notarization log:"
rm -f notarization.log
xcrun notarytool log $requestUUID \
--key $6 \
--key-id $5 \
--issuer $7 \
notarization.log
cat notarization.log
# staple
xcrun stapler staple "$1"