Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # From: https://scriptingosx.com/2019/09/notarize-a-command-line-tool/
- # This complements Armin's notarizefile() function by outputting the error
- # from xcrun if anything goes wrong. Useful for debugging!
- # upload file
- echo "## Uploading $filepath for notarization"
- xc_out=$(xcrun altool --notarize-app \
- --primary-bundle-id "$identifier" \
- --username "$dev_account" \
- --password "@keychain:$dev_keychain_label" \
- --asc-provider "$dev_team" \
- --file "$filepath" 2>&1)
- requestUUID=$(echo "$xc_out" | awk '/RequestUUID/ { print $NF; }')
- if [[ $requestUUID == "" ]]; then
- echo "Failed to upload:"
- echo "$xc_out"
- exit 1
- fi
- echo "Notarization RequestUUID: $requestUUID"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement