Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/buildbot/slave_pack.py')
-rw-r--r--build_files/buildbot/slave_pack.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py
index 5bef2b81739..19dac236762 100644
--- a/build_files/buildbot/slave_pack.py
+++ b/build_files/buildbot/slave_pack.py
@@ -22,10 +22,13 @@
# system and zipping it into buildbot_upload.zip. This is then uploaded
# to the master in the next buildbot step.
-import buildbot_utils
import os
import sys
+from pathlib import Path
+
+import buildbot_utils
+
def get_package_name(builder, platform=None):
info = buildbot_utils.VersionInfo(builder)
@@ -38,6 +41,12 @@ def get_package_name(builder, platform=None):
return package_name
+def sign_file_or_directory(path):
+ from codesign.simple_code_signer import SimpleCodeSigner
+ code_signer = SimpleCodeSigner()
+ code_signer.sign_file_or_directory(Path(path))
+
+
def create_buildbot_upload_zip(builder, package_files):
import zipfile
@@ -129,6 +138,8 @@ def pack_win(builder):
package_filename = package_name + '.msi'
package_filepath = os.path.join(builder.build_dir, package_filename)
+ sign_file_or_directory(package_filepath)
+
package_files += [(package_filepath, package_filename)]
create_buildbot_upload_zip(builder, package_files)