macOS: Correct Info.plist CFBundleVersion version string

This commit changes the Blender macOS bundle and blender-thumbnailer
app extension bundle Info.plist `CFBundleVersion` key to use the "short"
version string (X.X.X) instead of the "long" version string (X.X.X +
date), following the specs.[^1]

This fixes an issue with Xcode bundle archiving where the previous long
version would cause an error to be thrown during archive validation:

```
ERROR: [ContentDelivery.Uploader.6000007BD0C0] CFBundleVersion, “5.0.0 2025-09-09”,
must be composed of one to three period-separated integers. (-19239)
```

The previous "long" version string is still used by the `CFBundleGetInfoString`
key and thus still shows up in the application informations.

See Pull Request for app preview before/after screenshots comparaison.

[^1]: https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleversion?language=objc

Pull Request: https://projects.blender.org/blender/blender/pulls/146030
This commit is contained in:
Jonas Holzman
2025-09-10 15:29:54 +02:00
parent ac84e076db
commit 5c2f06bfc4
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>

View File

@@ -23,7 +23,7 @@
<key>CFBundleShortVersionString</key>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>CFBundleGetInfoString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}, Blender Foundation</string>
<key>LSMinimumSystemVersion</key>