How to compare versions by marketing version

Asked by davsimpson

Hello,

I appear to be having the exact opposite problem from dwood.

I use CFBundleVersion to contain an internal SVN build number (i.e. 3023), and I use CFBundleShortVersionString to display a marketing version number (i.e. 1.1). I want sparkle to only compare the CFBundleShortVersionString against what is in the appcast. From looking through the code, it only appears to check again CFBundleVersion in [NSBundle version].

Is there any suggestions other than hacking on the Sparkle code to make it work this way?

I've tried setting 'sparkle:shortVersionString' in my appcast in the hope this would trigger the CFBundleShortVersionString to be used locally..

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

Sorry, that's not supported behavior. The CFBundleShortVersionString is a localized, human-readable string, so it's typically not treated as machine-parseable. Why not just stick the SVN build numbers in the appcast? Failing that, you can swap implementations of the "versionString" and "displayVersionString" accessors in SUAppcastItem.

Can you help with this problem?

Provide an answer of your own, or ask davsimpson for more information if necessary.

To post a message you must log in.