Re: how to make version info appear in Finder?
Re: how to make version info appear in Finder?
- Subject: Re: how to make version info appear in Finder?
- From: Mike Ferris <email@hidden>
- Date: Mon, 23 Dec 2002 10:20:58 -0800
Unfortunately, I have it on good authority that the PB rel notes are
mistaken and that feature (referencing build setting values from
Info.plist entries) did not quite make it in for the Dec Tools... Oh
well, something to look forward to for next time I guess.
In the meantime, my favorite way to handle versioning is to use
"apple-generic" versioning and agvtool. This is what many of Apple's
own projects use to do versioning both for source versioning and
"marketing" versions.
In a Terminal do "/Developer/Tools/agvtool help" for full details.
As for how the actual version numbers work, you define a
CURRENT_PROJECT_VERSION build setting with a value that is the string
equivalent of a float (eg 501 or 312.3). You also set CFBundleVersion
to the same number. You set CFBundleShortVersionString to the
"marketing" version (eg 2.0 or 2.1.3). If you have multiple targets
you can set these in all of them as long as you use the same version
numbers for all targets.
When you want to set a new project version use
"/Developer/Tools/agvtool next-version -all". The "-all" makes it
update both the CURRENT_PROJECT_VERSION and CFBundleVersion values.
When you want to set a new "marketing" version use
"/Developer/Tools/agvtool new-marketing-version x.y.z".
(The project should not be open in PB while running agvtool...)
Finder will show the CFBundleShortVersionString in its Version: fields.
Cocoa's standard about panel will show "<CFBundleShortVersionString>
(v<CFBundleVersion)".
At Apple the project version goes up often, at least every time a
version of the project is submitted to the build. The marketing
version goes up at least every time a new version is shipped, but is
more under control of marketing folks who decide whether it should go
up by 1 or 0.1 or 0.0.1 or whatever.
Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.