Change version numbering system
In preparation for submitting to the App Store. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
b54ee58ec3
commit
59176ef9ec
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue