mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-30 16:51:59 +03:00
24 lines
507 B
Bash
Executable File
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
|