Project

General

Profile

Actions

Bug #9435

open

macOS app never updates the version

Added by John Bosman over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/11/2021
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
MacOS
Debug Log:
I read the instructions above:

Description

To accurately display version information, macOS apps need to have the CFBundleVersion and CFBundleShortVersionString tags in Info.plist. In Chirp’s case, both are set to a static 0.1.

If versions are not set during the build process, they can be added after it’s done by directly editing the Info.plist:

# Change these values
app_path='/PATH/TO/APP/HERE'
app_version='VERSION NUMBER HERE'

# Keep these as they are
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion string ${app_version}" "${app_path}/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString string ${app_version}" "${app_path}/Contents/Info.plist"

That would use the same version number for both fields. Technically they should be different (CFBundleVersion a machine readable string like 48657763 and CFBundleShortVersionString a human-centric value like 4.8.2), but even having the same version in both fields (or even one of them) would be a major improvement. A good number to use would be the date you already use in the file name.

Accurate versions numbers are important for macOS to know which app to open in ambiguous situations; for users (who expect to see them in the Finder); and for third-party apps with interact with others.

No data to display

Actions

Also available in: Atom PDF