• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: build numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: build numbers
      • From: "Sean McBride" <email@hidden>
References: 
 >build numbers (From: Christian Schneider <email@hidden>)
 >Re: build numbers (From: Allan Odgaard <email@hidden>)
 >Re: build numbers (From: Stephane Sudre <email@hidden>)
 >Re: build numbers (From: Allan Odgaard <email@hidden>)
 >Re: build numbers (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Re: build numbers
  • Next by Date: Re: Applications running..
  • Previous by thread: Re: build numbers
  • Next by thread: Re: build numbers
  • Index(es):
    • Date
    • Thread