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

24 lines
507 B
Bash
Executable File

#!/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
echo "#### Notarizing"
xcrun notarytool submit VimR.app.zip \
--keychain-profile "apple-dev-notar" \
--wait
popd >/dev/null
pushd "${vimr_app_path}/.." >/dev/null
xcrun stapler staple VimR.app
echo "### Notarization finished"
popd >/dev/null
}
main