Mac App Store release script: drop the archive profile check !403

merged merged by cmc on 2026-11-20 08:34 UTC · krz/orgstar:mas-release into main

1 file changed, +3 −3

Layout: unified · split

scripts/release-macos.sh +3 −3
@@ -31,8 +31,9 @@ preflight() {
31} 31}
32 32
33# Checks the built app: no Sparkle, no updater keys, no process launching, no temporary exceptions, 33# Checks the built app: no Sparkle, no updater keys, no process launching, no temporary exceptions,
34# a provisioning profile in the app and in each extension, and no license or update text in its 34# and no license or update text in its string tables. Provisioning profiles aren't checked here: the
35# string tables. 35# archive is signed for development, which gives extensions without capabilities none, and the
36# export signs every bundle again with a distribution profile.
36check_archive() { 37check_archive() {
37 set -- "$1"/Products/Applications/*.app 38 set -- "$1"/Products/Applications/*.app
38 [ -d "$1" ] || fail "no app in the archive" 39 [ -d "$1" ] || fail "no app in the archive"
@@ -50,7 +51,6 @@ check_archive() {
50 case "$entitlements" in 51 case "$entitlements" in
51 *temporary-exception*) fail "$(basename "$bundle") has a temporary-exception entitlement" ;; 52 *temporary-exception*) fail "$(basename "$bundle") has a temporary-exception entitlement" ;;
52 esac 53 esac
53 [ -f "$bundle/Contents/embedded.provisionprofile" ] || fail "$(basename "$bundle") has no embedded.provisionprofile"
54 done 54 done
55 found="$(find "$app" -path '*.lproj/*' -name '*.strings' -exec sh -c \ 55 found="$(find "$app" -path '*.lproj/*' -name '*.strings' -exec sh -c \
56 'plutil -convert json -o - "$1" | grep -Eio "sponsor|license key|krz\.sh|check for updates" | sed "s|^|$1: |"' _ {} \; | head -1)" 56 'plutil -convert json -o - "$1" | grep -Eio "sponsor|license key|krz\.sh|check for updates" | sed "s|^|$1: |"' _ {} \; | head -1)"