Fix iOS App Store upload validation
This commit is contained in:
parent
fd9ea84ea5
commit
0924e40463
7 changed files with 115 additions and 8 deletions
|
|
@ -66,7 +66,12 @@ require_tool() {
|
|||
extract_profile_entitlements() {
|
||||
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[@]}"
|
||||
}
|
||||
|
||||
sign_bundle() {
|
||||
|
|
@ -128,8 +133,8 @@ sign_ios() {
|
|||
cp "$ext_profile" "${ext}/embedded.mobileprovision"
|
||||
app_entitlements="${work_dir}/app-entitlements.plist"
|
||||
ext_entitlements="${work_dir}/extension-entitlements.plist"
|
||||
extract_profile_entitlements "$app_profile" "$app_entitlements"
|
||||
extract_profile_entitlements "$ext_profile" "$ext_entitlements"
|
||||
extract_profile_entitlements "$app_profile" "$app_entitlements" Apple/App/App-iOS.entitlements
|
||||
extract_profile_entitlements "$ext_profile" "$ext_entitlements" Apple/NetworkExtension/NetworkExtension-iOS.entitlements
|
||||
|
||||
rm -rf "${app}/_CodeSignature" "${ext}/_CodeSignature"
|
||||
sign_bundle ios "$ext" "$ext_entitlements"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue