CFBundleVersion vs CFBundleShortVersionString

324 views
Skip to first unread message

Galen Richards

unread,
Jan 18, 2014, 2:32:05 PM1/18/14
to autopkg...@googlegroups.com
It appears that some packages do not have the "CFBundleShortVersionString" attribute in Info.plist. Instead they have "CFBundleVersion". I'm not a Python expert but I'm guessing a simple if statement inside AppDmgVersioner or PlistReader would fix the issue.

Tim Sutton

unread,
Jan 18, 2014, 3:42:06 PM1/18/14
to autopkg...@googlegroups.com
Yes, one of the reasons PlistReader (and AppDmgVersioner, Versioner) exists is to extract versions out of alternate Info.plist keys.

I've just updated the Dropbox.pkg recipe as an example:


If you have more, feel free to submit an issue or pull request. The beauty of recipes is that you needn't be a Python expert to write or fix them.


-Tim

Galen Richards

unread,
Jan 20, 2014, 1:57:03 PM1/20/14
to autopkg...@googlegroups.com
Ah excellent, thank you. I didn't notice the plist_keys option.
Reply all
Reply to author
Forward
0 new messages