Re: build numbers
Re: build numbers
- Subject: Re: build numbers
- From: Allan Odgaard <email@hidden>
- Date: Wed, 15 Sep 2004 19:06:40 +0200
On 15. Sep 2004, at 18:42, Glenn Andreas wrote:
[...] maybe it's supposed to be included in my bundle, and I should
use version.plist instead of CFBundleVersion??? [...]
Yup - three potentially different versions, each with subtly
overlapping but not quite identical purposes and use,
hmm... that sounds pretty stupid -- anyone actually using
version.plist? ;)
[...] Gotta love the way something can have [Major,Minor,Build],
[Major], or [Build]. Of course, since the about box automatically
adds the "v" you can't do something like "beta 5" since that would
show up as "Foo 1.0 (vbeta 5)"
Also how minor is limited to only one digit. So after v1.9 you pretty
much have to make it v2.0, or maybe v1.9.1 ;)
[...] (do two different beta version have the same short version
string with only different build numbers?)
I'd say yes, since the version number would pretty quickly get out of
control if you'd bump it for each new beta.
I'd say, from reading above tech note, that the "cleanest" way is to
bump the CFBundleVersion with the build number (and only have the
build number there and nothing else) and the
CFBundleGetInfo[HTML|String] in your appropriate InfoPlist.strings
files (one for each localization).
Yes, I only have the full version number as CFBundleVersion which I
bump with the perl command I showed (and no other version keys in
Info.plist). Then I have InfoPlist_in.strings as:
CFBundleName = "TextMate";
CFBundleShortVersionString = "${TM_SHORT_VERSION}";
CFBundleGetInfoString = "TextMate version ${TM_SHORT_VERSION},
Copyright ${TM_YEAR} MacroMates.";
NSHumanReadableCopyright = "Copyright ${TM_YEAR} MacroMates.";
I run this through:
TM_YEAR=`date +%Y` \
TM_SHORT_VERSION=`sed -n < Info.plist 's/^.*CFBundleVersion =
"\(.*\)[abdf].*".*$/\1/p'` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g'
To generate the actual file (and use iconv to make it ucs-2).
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about
programming
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden