Experimental min OS version patching

This commit is contained in:
Ali
2021-02-17 23:43:48 +04:00
parent bd07b85c83
commit 28f220cbab
6 changed files with 148 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
name=<<<NAME>>>
version=<<<MIN_OS_VERSION>>>
f="$1/$name"
plist_path="$f/Info.plist"
plutil -replace MinimumOSVersion -string $version "$plist_path"
if [ "$version" == "14.0" ]; then
binary_path="$f/$(basename $f | sed -e s/\.appex//g)"
xcrun lipo "$binary_path" -remove armv7 -o "$binary_path" 2>/dev/null || true
fi