SL-15585 more logging for altool

master
Andrey Lihatskiy 2021-07-19 18:58:04 +03:00
parent 11635dc5b8
commit 54171dbc9f
1 changed files with 7 additions and 6 deletions

View File

@ -6,12 +6,12 @@ if [ -f "$CONFIG_FILE" ]; then
zip_file=${app_file/app/zip}
ditto -c -k --keepParent "$app_file" "$zip_file"
if [ -f "$zip_file" ]; then
requestUUID=$(xcrun altool --notarize-app --primary-bundle-id "com.secondlife.viewer" \
--username $USERNAME \
--password $PASSWORD \
--asc-provider $ASC_PROVIDER \
--file "$zip_file" 2>&1 \
| awk '/RequestUUID/ { print $NF; }')
res=$(xcrun altool --notarize-app --primary-bundle-id "com.secondlife.viewer" \
--username $USERNAME \
--password $PASSWORD \
--asc-provider $ASC_PROVIDER \
--file "$zip_file" 2>&1)
requestUUID=$(echo $res | awk '/RequestUUID/ { print $NF; }')
echo "Apple Notarization RequestUUID: $requestUUID"
@ -41,6 +41,7 @@ if [ -f "$CONFIG_FILE" ]; then
fi
else
echo "Notarization error: couldn't get request UUID"
echo $res
exit 1
fi
fi