Advertisement
mathielo

Untitled

Dec 17th, 2019
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. # From: https://scriptingosx.com/2019/09/notarize-a-command-line-tool/
  2. # This complements Armin's notarizefile() function by outputting the error
  3. # from xcrun if anything goes wrong. Useful for debugging!
  4.  
  5. # upload file
  6. echo "## Uploading $filepath for notarization"
  7. xc_out=$(xcrun altool --notarize-app \
  8.                        --primary-bundle-id "$identifier" \
  9.                        --username "$dev_account" \
  10.                        --password "@keychain:$dev_keychain_label" \
  11.                        --asc-provider "$dev_team" \
  12.                        --file "$filepath" 2>&1)
  13.  
  14. requestUUID=$(echo "$xc_out" | awk '/RequestUUID/ { print $NF; }')
  15.  
  16. if [[ $requestUUID == "" ]]; then
  17.     echo "Failed to upload:"
  18.     echo "$xc_out"
  19.     exit 1
  20. fi
  21.  
  22. echo "Notarization RequestUUID: $requestUUID"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement