From 1ebe3c746aece52830c8b09be542fe3206837c5e Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 14 Apr 2026 14:19:22 +0800 Subject: [PATCH] fix(ci): support current altool mas uploads --- .github/scripts/upload-mas-pkg.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/scripts/upload-mas-pkg.sh b/.github/scripts/upload-mas-pkg.sh index 189cacd2c..1a15c6552 100755 --- a/.github/scripts/upload-mas-pkg.sh +++ b/.github/scripts/upload-mas-pkg.sh @@ -22,8 +22,11 @@ fi upload_cmd=( xcrun altool - --upload-package + --upload-app + -f "$pkg_path" + -t + macos --wait --show-progress --output-format @@ -55,7 +58,7 @@ run_upload() { return "$exit_code" } -echo "Uploading Mac App Store package with Apple ID: ${pkg_path}" +echo "Uploading Mac App Store package: ${pkg_path}" if run_upload; then exit 0 fi @@ -75,9 +78,12 @@ if [[ $providers_exit -ne 0 ]]; then exit 1 fi -mapfile -t provider_ids < <( +provider_ids=() +while IFS= read -r provider_id; do + provider_ids+=("$provider_id") +done < <( printf '%s\n' "$providers_output" \ - | perl -ne 'print "$1\n" if /publicid[^[:alnum:]]+([[:alnum:]-]+)/i' \ + | grep -Eo '[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}' \ | awk '!seen[$0]++' )