Re: Which bundle info.plist keys are used to tell newer app version from old?
Re: Which bundle info.plist keys are used to tell newer app version from old?
- Subject: Re: Which bundle info.plist keys are used to tell newer app version from old?
- From: Iceberg-Dev <email@hidden>
- Date: Thu, 18 Dec 2008 21:57:33 +0100
On Dec 18, 2008, at 1:00 AM, Chris Markle wrote:
Relatively new at this so forgive the possibly stupid or naive
questions... What are the key strings to employ in the application's
info.plist to change (increment?) so that the Finder will recognize a
newer version of the app as being actually newer? And maybe even
better, where is this discussed?
Here are what I think the salient plist keys and values are from the
current version of the app (which I inherited and with some
identifying info changed to protect the innocent).
<plist><dict>
<key>CFBundleIdentifier</key><string>com.acmecompany.coolapp1</
string>
<key>CFBundleName</key><string>CoolApp1</string>
<key>CFBundleIconFile</key><string>CoolApp1.icns</string>
<key>CFBundleDisplayName</key><string>CoolApp1</string>
<key>CFBundleGetInfoString</key><string>CoolApp1 version 2.1 build
939, Copyright (c) xxxx by Acme, Inc. All rights reserved.</string>
<key>CFBundleShortVersionString</key><string>CoolApp1 version 2.1
build 939</string>
<key>NSHumanReadableCopyright</key><string>Copyright (c) xxx by Acme,
Inc. All rights reserved.</string>
<key>CFBundleExecutable</key><string>CoolApp1</string>
<key>CFBundleVersion</key><string>2.1bld939</string>
[...]
</dict></plist>
I think this app has mis-used a number of these strings possibly
including CFBundleShortVersionString (seems like it should be v.r.m
ala 2.1 or 2.1.0), CFBundleVersion (seems like it should be a build
number ala 1243), maybe others as well.
I've seem in the Launch Services Programming Guide where it talks
about preferred apps for a document or URL and notes that (eventually)
the Finder will "If two or more verions of the same application have
been found, giver preference to the one with the latest version
number". But it doesn't say specifically which of these keys represent
the version number (and non of these keys are called exactly that). I
would have to guess that it's CFBundleShortVersionString but it might
not be... Anyone know?
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPRuntimeConfig/Articles/PListKeys.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden