aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2023-10-31 21:42:31 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2023-11-01 14:10:02 +0300
commit3b554dc690b6a11159da30cc32a898916a3e67dc (patch)
treed997d57e33fad81934cc555fd87c588eafb91d17 /tools/darwin
parent56ac4dfd74127f7d998e66ffaf572b25459f0f8c (diff)
use keychain profile for notarytool
Diffstat (limited to 'tools/darwin')
-rwxr-xr-xtools/darwin/packaging/osx/notarize.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/darwin/packaging/osx/notarize.sh b/tools/darwin/packaging/osx/notarize.sh
index fd078be210..8f6b089cf8 100755
--- a/tools/darwin/packaging/osx/notarize.sh
+++ b/tools/darwin/packaging/osx/notarize.sh
@@ -6,18 +6,15 @@
set -e
-if [[ -z "$DEV_ACCOUNT" || -z "$DEV_ACCOUNT_PASSWORD" ]]; then
+if [[ -z "$NOTARYTOOL_KEYCHAIN_PROFILE" ]]; then
echo "skipping notarization"
exit 0
fi
dmg="$1"
-xcrun notarytool \
- submit \
- --wait \
- --timeout '1h' \
- --apple-id "$DEV_ACCOUNT" \
- --password "$DEV_ACCOUNT_PASSWORD" \
- ${DEV_TEAM:+--team-id "$DEV_TEAM"} \
+xcrun notarytool submit \
+ --keychain-profile "$NOTARYTOOL_KEYCHAIN_PROFILE" \
+ ${NOTARYTOOL_KEYCHAIN_PATH:+--keychain "$NOTARYTOOL_KEYCHAIN_PATH"} \
+ --wait --timeout '1h' \
"$dmg" 2>&1
xcrun stapler staple "$dmg"