mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Experimental min OS version patching
This commit is contained in:
15
Telegram/PatchMinOSVersion.source.sh
Normal file
15
Telegram/PatchMinOSVersion.source.sh
Normal 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
|
||||
Reference in New Issue
Block a user