Change version numbering system

In preparation for submitting to the App Store.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-21 06:27:29 -07:00
parent b54ee58ec3
commit 59176ef9ec
2 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@ echo "short_version=${short_version}"
echo "build_time=${build_time}"
info_plist="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion '${git_version}'" "${info_plist}"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion '${short_version}'" "${info_plist}"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString '${short_version}'" "${info_plist}"
/usr/libexec/PlistBuddy -c "Add :GitVersion string '${git_version}'" "${info_plist}"
/usr/libexec/PlistBuddy -c "Add :BuildTime date '${build_time}'" "${info_plist}"
exit 0

View File

@ -38,7 +38,7 @@ class AboutWindowController: NSWindowController {
appName.stringValue = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as! String
let shortVersionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
let fullVersionString = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String
let fullVersionString = Bundle.main.object(forInfoDictionaryKey: "GitVersion") as! String
appVersion.stringValue = String.localizedStringWithFormat( NSLocalizedString("Version %@ (%@)", comment: "Version string"), shortVersionString, fullVersionString);