build: allow provisioning updates and use app-store-connect export method

-allowProvisioningUpdates lets xcodebuild create the Mac App Store
provisioning profile for com.dkelkhoff.markdownViewr on first export.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darin KelkhoffandClaude Opus 4.8 committed 2026-06-12 08:32:52 -05:00
1 parent f1e96f2913
commit f10dd1fa48
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<string>app-store-connect</string>
<key>teamID</key>
<string>9MG4YT2G93</string>
<key>signingStyle</key>
+3 -1
View File
@@ -160,12 +160,14 @@ release-mas: kill
-configuration Release-MAS \
-archivePath "$ARCHIVE" \
-destination 'generic/platform=macOS' \
-allowProvisioningUpdates \
CURRENT_PROJECT_VERSION="$BUILD_NUMBER" | xcpretty || true
echo "==> Exporting App Store package..."
xcodebuild -exportArchive \
-archivePath "$ARCHIVE" \
-exportPath "$EXPORT" \
-exportOptionsPlist ExportOptions-MAS.plist
-exportOptionsPlist ExportOptions-MAS.plist \
-allowProvisioningUpdates
PKG=$(find "$EXPORT" -name '*.pkg' | head -1)
echo ""
echo "Done! Signed App Store package:"