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/upload.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 scripts/upload.sh (limited to 'scripts/upload.sh') diff --git a/scripts/upload.sh b/scripts/upload.sh new file mode 100755 index 0000000..53c45b4 --- /dev/null +++ b/scripts/upload.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -e + + +if [ "$#" -ne 3 ]; then + echo "Usage: $0 " + exit 1 +fi + +project_name="$1" +build_directory="$2" +upload_location="$3" + +app_path="${build_directory}/${project_name}.app" +app_version=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" ${app_path}/Contents/Info.plist) +build_number=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${app_path}/Contents/Info.plist) +dmg_path="${build_directory}/${project_name}-${app_version}.dmg" + +echo "Uploading ${dmg_path} to ${upload_location}" +rsync -avz "${dmg_path}" "${upload_location}" +rsync -avz "${dmg_path}".minisig "${upload_location}" + +for delta_file in "${build_directory}/${project_name}${build_number}"-*.delta; do + if [ -f "$delta_file" ]; then + echo "Uploading ${delta_file} to ${upload_location}" + rsync -avz "$delta_file" "${upload_location}" + if [ -f "${delta_file}.minisig" ]; then + rsync -avz "${delta_file}.minisig" "${upload_location}" + fi + fi +done -- cgit