zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.2k stars 1.66k forks source link

Set kMDItemVersion on mac os app #2340

Closed laduke closed 1 day ago

laduke commented 1 month ago

MDMs like Jamf read the kMDItemVersion information for reporting and patch management. But because all clients have the same version, it can’t find clients with outdated versions.

% zerotier-cli info
200 info AABBCCDDEE 1.14.0 ONLINE

mdls -name kMDItemVersion /Applications/ZeroTier.app 
kMDItemVersion = "1.0"

mdls -name kMDItemVersion /Library/Application\ Support/ZeroTier/One/zerotier-one                                                                        ~/repos/github.com/zerotier/Central
kMDItemVersion = (null)

I don't know yet where in xcode this is set. We already set the version to the right number in various places in xcode.

glimberg commented 1 month ago

In the desktop app, it's in the Info.plist

adamierymenko commented 3 days ago

It's actually the key CFBundleShortVersionString in Info.plist, will be easy to update on build.

adamierymenko commented 1 day ago

Closing since this is fixed in 1.14.1 release.