mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-26 08:41:13 +02:00
11 lines
446 B
Bash
Executable File
11 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
today=$(date '+%Y-%m-%d')
|
|
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"
|