Commit 3a4ffc4d59

3a4ffc4d59064a8b30e8f39ab51fa731d838a88a

parent: 280c86a0f1

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-20 08:34 UTC

Don't check provisioning profiles in the development-signed archive

Extensions without capabilities get no profile at archive time, so the
Mac App Store dry run failed on the Quick Look extension.

Layout: unified · split

scripts/release-macos.sh +3 −3
@@ -31,8 +31,9 @@ preflight() {
3131}
3232
3333# 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
35# string tables.
34# and no license or update text in its string tables. Provisioning profiles aren't checked here: the
35# archive is signed for development, which gives extensions without capabilities none, and the
36# export signs every bundle again with a distribution profile.
3637check_archive() {
3738 set -- "$1"/Products/Applications/*.app
3839 [ -d "$1" ] || fail "no app in the archive"
@@ -50,7 +51,6 @@ check_archive() {
5051 case "$entitlements" in
5152 *temporary-exception*) fail "$(basename "$bundle") has a temporary-exception entitlement" ;;
5253 esac
53 [ -f "$bundle/Contents/embedded.provisionprofile" ] || fail "$(basename "$bundle") has no embedded.provisionprofile"
5454 done
5555 found="$(find "$app" -path '*.lproj/*' -name '*.strings' -exec sh -c \
5656 'plutil -convert json -o - "$1" | grep -Eio "sponsor|license key|krz\.sh|check for updates" | sed "s|^|$1: |"' _ {} \; | head -1)"