Fix iOS App Store upload validation
This commit is contained in:
parent
fd9ea84ea5
commit
0924e40463
7 changed files with 115 additions and 8 deletions
|
|
@ -71,7 +71,12 @@ profile_for() {
|
|||
generate_entitlements_from_profile() {
|
||||
local profile="$1"
|
||||
local output="$2"
|
||||
Scripts/apple/profile-entitlements.py "$profile" --output "$output"
|
||||
local template="${3:-}"
|
||||
local args=("$profile" --output "$output")
|
||||
if [[ -n "$template" ]]; then
|
||||
args+=(--template "$template")
|
||||
fi
|
||||
Scripts/apple/profile-entitlements.py "${args[@]}"
|
||||
}
|
||||
|
||||
apple_signing_available() {
|
||||
|
|
@ -331,8 +336,8 @@ build_ios_kms_release() {
|
|||
|
||||
app_entitlements="${apple_root}/ios-kms/app-entitlements.plist"
|
||||
ext_entitlements="${apple_root}/ios-kms/extension-entitlements.plist"
|
||||
generate_entitlements_from_profile "$app_profile" "$app_entitlements"
|
||||
generate_entitlements_from_profile "$ext_profile" "$ext_entitlements"
|
||||
generate_entitlements_from_profile "$app_profile" "$app_entitlements" Apple/App/App-iOS.entitlements
|
||||
generate_entitlements_from_profile "$ext_profile" "$ext_entitlements" Apple/NetworkExtension/NetworkExtension-iOS.entitlements
|
||||
|
||||
rm -rf "${app}/_CodeSignature" "${ext}/_CodeSignature"
|
||||
kms_sign_bundle ios "$ext" "$ext_entitlements"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue