aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2023-10-31 21:42:31 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2023-11-14 12:47:28 +0300
commitee2726641fdfc411acfdb7508c05942e463f4de4 (patch)
treeb3bcdaae13d09f59f7d47f13bb49a201b73e29cd /tools
parenta17bb2e13920ab8120f47da0030c3186c9015fde (diff)
use keychain profile for notarytool
(cherry picked from commit 3b554dc690b6a11159da30cc32a898916a3e67dc)
Diffstat (limited to 'tools')
-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"