[Bf-blender-cvs] [f19c315938d] codesign: Codesogn: Don't capitalize single word

Sergey Sharybin noreply at git.blender.org
Wed Jan 8 19:54:49 CET 2020


Commit: f19c315938d72da28aea84f56f2d171f32cb9748
Author: Sergey Sharybin
Date:   Wed Jan 8 18:51:00 2020 +0100
Branches: codesign
https://developer.blender.org/rBf19c315938d72da28aea84f56f2d171f32cb9748

Codesogn: Don't capitalize single word

Makes it compatible with Blender's BundleID.

===================================================================

M	build_files/buildbot/codesign/macos_code_signer.py

===================================================================

diff --git a/build_files/buildbot/codesign/macos_code_signer.py b/build_files/buildbot/codesign/macos_code_signer.py
index ba686ccef8b..3d4f86eab78 100644
--- a/build_files/buildbot/codesign/macos_code_signer.py
+++ b/build_files/buildbot/codesign/macos_code_signer.py
@@ -284,7 +284,10 @@ class MacOSCodeSigner(BaseCodeSigner):
         app_name = name.split('-', 2)[0].lower()
 
         app_name_words = app_name.split()
-        app_name_id = ''.join(word.capitalize() for word in app_name_words)
+        if len(app_name_words) > 1:
+            app_name_id = ''.join(word.capitalize() for word in app_name_words)
+        else:
+            app_name_id = app_name_words[0]
 
         # TODO(sergey): Consider using "alpha" for buildbot builds.
         return f'org.blenderfoundation.{app_name_id}.release'



More information about the Bf-blender-cvs mailing list