1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00
vimr/bin/notarize_vimr.sh

24 lines
507 B
Bash
Raw Normal View History

2020-11-15 19:50:14 +03:00
#!/bin/bash
set -Eeuo pipefail
readonly vimr_app_path=${vimr_app_path:?"Path to VimR.app"}
main() {
pushd "${vimr_app_path}/.." >/dev/null
echo "### Notarizing"
ditto -c -k --keepParent VimR.app VimR.app.zip
2022-11-20 13:26:06 +03:00
echo "#### Notarizing"
xcrun notarytool submit VimR.app.zip \
--keychain-profile "apple-dev-notar" \
--wait
2020-11-17 21:39:45 +03:00
popd >/dev/null
2020-11-15 20:06:47 +03:00
2020-11-17 21:39:45 +03:00
pushd "${vimr_app_path}/.." >/dev/null
2020-11-15 19:50:14 +03:00
xcrun stapler staple VimR.app
2020-11-16 00:11:01 +03:00
echo "### Notarization finished"
2020-11-15 19:50:14 +03:00
popd >/dev/null
}
2021-02-20 18:02:13 +03:00
main