[iOS] show app and bundle version in system settings

This commit is contained in:
Andrey Filipenkov
2022-09-30 12:52:45 +03:00
parent 8e066a00bc
commit 7801a2ad85
4 changed files with 29 additions and 0 deletions
+3
View File
@@ -5,3 +5,6 @@ commitShort=$(git rev-parse --short HEAD)
bundleVersion="$today-$commitShort"
/usr/libexec/PlistBuddy "$1/Info.plist" -c "Set :CFBundleVersion $bundleVersion"
/usr/libexec/PlistBuddy "$1/Settings.bundle/Root.plist" -c "Set :PreferenceSpecifiers:0:DefaultValue $MARKETING_VERSION"
/usr/libexec/PlistBuddy "$1/Settings.bundle/Root.plist" -c "Set :PreferenceSpecifiers:1:DefaultValue $bundleVersion"