From 8f6da65a680cdd30ec541b3b226137004a1e4681 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 8 Jul 2025 12:09:10 +0200 Subject: Notarize, sign and wishlist --- scripts/notarize.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/notarize.sh (limited to 'scripts/notarize.sh') diff --git a/scripts/notarize.sh b/scripts/notarize.sh new file mode 100755 index 0000000..dc462a2 --- /dev/null +++ b/scripts/notarize.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + + +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + exit 1 +fi + +project_name="$1" +build_directory="$2" + +app_path="${build_directory}/${project_name}.app" +app_version=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" ${app_path}/Contents/Info.plist) +dmg_path="${build_directory}/${project_name}-${app_version}.dmg" +xcrun notarytool submit ${dmg_path} --wait --verbose --keychain-profile "Apps @ Unlimited Pizza" +stapler staple "${app_path}" -- cgit