[Bf-blender-cvs] [68d65feaa98] codesign: Codesign: Correct bundle identifier

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


Commit: 68d65feaa98e6d00e59a200967ad772120c97c1a
Author: Sergey Sharybin
Date:   Wed Jan 8 16:58:13 2020 +0100
Branches: codesign
https://developer.blender.org/rB68d65feaa98e6d00e59a200967ad772120c97c1a

Codesign: Correct bundle identifier

Apparently, it can not contain underscore.

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

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 afa56d5466d..401fb480882 100644
--- a/build_files/buildbot/codesign/macos_code_signer.py
+++ b/build_files/buildbot/codesign/macos_code_signer.py
@@ -281,10 +281,13 @@ class MacOSCodeSigner(BaseCodeSigner):
         Get bundle ID which will be used to notarize DMG
         """
         name = file.relative_filepath.name
-        app_name = name.split('-', 2)[0].lower().replace(' ', '_')
+        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)
 
         # TODO(sergey): Consider using "alpha" for buildbot builds.
-        return f'org.blenderfoundation.{app_name}.release'
+        return f'org.blenderfoundation.{app_name_id}.release'
 
     def notarize_request(self, file) -> str:
         """



More information about the Bf-blender-cvs mailing list