SHARE
TWEET

Untitled

mathielo Dec 17th, 2019 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top