1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

[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

View File

@ -6,6 +6,26 @@
<string>Root</string>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSTitleValueSpecifier</string>
<key>Title</key>
<string>AppVersion</string>
<key>Key</key>
<string>foo1</string>
<key>DefaultValue</key>
<string></string>
</dict>
<dict>
<key>Type</key>
<string>PSTitleValueSpecifier</string>
<key>Title</key>
<string>BuildVersion</string>
<key>Key</key>
<string>foo2</string>
<key>DefaultValue</key>
<string></string>
</dict>
<dict>
<key>Type</key>
<string>PSRadioGroupSpecifier</string>

View File

@ -1,3 +1,6 @@
"LaunchType" = "App start type";
"Launcher" = "Launcher";
"Game" = "Game";
"AppVersion" = "Application version";
"BuildVersion" = "Build version";

View File

@ -1,3 +1,6 @@
"LaunchType" = "Тип запуска приложения";
"Launcher" = "Конфигурация (лаунчер)";
"Game" = "Игра";
"AppVersion" = "Версия приложения";
"BuildVersion" = "Версия сборки";

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"