Skip to content

Commit

Permalink
Use the new notarytool
Browse files Browse the repository at this point in the history
  • Loading branch information
qvacua committed Nov 20, 2022
1 parent 463e1f3 commit eb763ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 59 deletions.
17 changes: 4 additions & 13 deletions bin/notarize_vimr.sh
Expand Up @@ -8,21 +8,12 @@ main() {
echo "### Notarizing"
ditto -c -k --keepParent VimR.app VimR.app.zip

echo "#### Uploading"
local -x request_uuid
request_uuid=$(xcrun altool --notarize-app --primary-bundle-id "com.qvacua.VimR" --username "hataewon@gmail.com" --password "@keychain:dev-notar" --file VimR.app.zip | grep RequestUUID | sed -E 's/.* = (.*)/\1/')
readonly request_uuid

echo "#### Uploaded"
echo "Use 'xcrun altool --notarization-history 0 -u hataewon@gmail.com -p @keychain:dev-notar' or"
echo "'xcrun altool --notarization-info ${request_uuid} -u hataewon@gmail.com -p @keychain:dev-notar'"
echo "#### Notarizing"
xcrun notarytool submit VimR.app.zip \
--keychain-profile "apple-dev-notar" \
--wait
popd >/dev/null

pushd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null
echo "#### Waiting for notarization ${request_uuid} to finish"
./bin/wait_for_notarization.py
popd </dev/null

pushd "${vimr_app_path}/.." >/dev/null
xcrun stapler staple VimR.app
echo "### Notarization finished"
Expand Down
46 changes: 0 additions & 46 deletions bin/wait_for_notarization.py

This file was deleted.

0 comments on commit eb763ea

Please sign in to comment.