Please use versioning format x.x.xx instead of x.x (xx)
We are trying to automate software updates and track inventory of DisplayLink drivers in our macOS environment. Trying to parse versions when the value reports as 4.1 (11)
or DisplayLink Driver 4.1.11 - Copyright 2003...
makes it difficult.
In the driver Info.plist file, please set the CFBundleShortVersionString
key in the x.x.xx format. Even better, clean up the CFBundleGetInfoString
-
Holger Netterby commented
Please get versioning correct! It impossible to get everything correct in all systems (Jamf and AutoPKG) with versioning changing!
With 1.5.0 CFBundleShortVersionString has given 1.5.0 (125)
With 1.6.0 CFBundleShortVersionString="1.6.0" and CFBundleVersion="128" but there is a version being read that is 5.9.128.0Version 1.5.0 DisplayLinkManagerApp.pkg/PackageInfo gives this:
<?xml version="1.0" encoding="utf-8"?>
<pkg-info overwrite-permissions="true" relocatable="false" identifier="com.displaylink.displaylinkmanagerapp" postinstall-action="none" version="1.5.0 (125)" format-version="2" generator-version="InstallCmds-720 (19H1323)" install-location="/Applications" auth="root">
<payload numberOfFiles="34" installKBytes="14683"/>
<bundle id="com.displaylink.DisplayLinkUserAgent" CFBundleShortVersionString="1.5.0 (125) " path="./DisplayLink Manager.app"/>
<bundle id="com.displaylink.DisplayLinkLoginHelper" CFBundleShortVersionString="1.5.0 (125) None" path="./DisplayLink Manager.app/Contents/Library/LoginItems/DisplayLinkLoginHelper.app"/>
<bundle-version>
<bundle id="com.displaylink.DisplayLinkUserAgent"/>
</bundle-version>
<upgrade-bundle>
<bundle id="com.displaylink.DisplayLinkUserAgent"/>
</upgrade-bundle>
<update-bundle/>
<atomic-update-bundle/>
<strict-identifier>
<bundle id="com.displaylink.DisplayLinkLoginHelper"/>
</strict-identifier>
<relocate/>
<scripts>
<postinstall file="./postinstall"/>
</scripts>Version 1.6.0 (5.9.128.0) DisplayLinkManagerApp.pkg/PackageInfo gives this:
<?xml version="1.0" encoding="utf-8"?>
<pkg-info overwrite-permissions="true" relocatable="false" identifier="com.displaylink.displaylinkmanagerapp" postinstall-action="none" version="5.9.128.0" format-version="2" generator-version="InstallCmds-763 (20G224)" install-location="/Applications" auth="root">
<payload numberOfFiles="32" installKBytes="15182"/>
<bundle path="./DisplayLink Manager.app" id="com.displaylink.DisplayLinkUserAgent" CFBundleShortVersionString="1.6.0" CFBundleVersion="128"/>
<bundle path="./DisplayLink Manager.app/Contents/Library/LoginItems/DisplayLinkLoginHelper.app" id="com.displaylink.DisplayLinkLoginHelper" CFBundleShortVersionString="1.6.0" CFBundleVersion="128"/>
<bundle-version>
<bundle id="com.displaylink.DisplayLinkUserAgent"/>
</bundle-version>
<upgrade-bundle>
<bundle id="com.displaylink.DisplayLinkUserAgent"/>
</upgrade-bundle>
<update-bundle/>
<atomic-update-bundle/>
<strict-identifier>
<bundle id="com.displaylink.DisplayLinkLoginHelper"/>
</strict-identifier>
<relocate/>
<scripts>
<postinstall file="./postinstall"/>
</scripts>