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:
parent
8e066a00bc
commit
7801a2ad85
@ -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>
|
||||
|
@ -1,3 +1,6 @@
|
||||
"LaunchType" = "App start type";
|
||||
"Launcher" = "Launcher";
|
||||
"Game" = "Game";
|
||||
|
||||
"AppVersion" = "Application version";
|
||||
"BuildVersion" = "Build version";
|
||||
|
@ -1,3 +1,6 @@
|
||||
"LaunchType" = "Тип запуска приложения";
|
||||
"Launcher" = "Конфигурация (лаунчер)";
|
||||
"Game" = "Игра";
|
||||
|
||||
"AppVersion" = "Версия приложения";
|
||||
"BuildVersion" = "Версия сборки";
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user