diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-07-31 17:04:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-08-04 16:44:41 +0300 |
commit | 16c7b6a7fe5068c6d5384378759f799ed9e273d6 (patch) | |
tree | 94875be7273a60b88e23d98bcc866cf1d01fd578 /build_files/buildbot/worker_pack.py | |
parent | e8483f9bd721f93ec8c21fb339a518096042537d (diff) |
Buildbot: make code signing of packages optional with --codesign parameter
This is in preparation of doing builds per commit that will not be code signed.
Ref D8438
Differential Revision: https://developer.blender.org/D8451
Diffstat (limited to 'build_files/buildbot/worker_pack.py')
-rw-r--r-- | build_files/buildbot/worker_pack.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_files/buildbot/worker_pack.py b/build_files/buildbot/worker_pack.py index 87ee49c87d8..96c8db8e6c8 100644 --- a/build_files/buildbot/worker_pack.py +++ b/build_files/buildbot/worker_pack.py @@ -117,6 +117,8 @@ def pack_mac(builder): if info.is_development_build: background_image = os.path.join(release_dir, 'buildbot', 'background.tif') command += ['--background-image', background_image] + if builder.codesign: + command += ['--codesign'] command += [builder.install_dir] buildbot_utils.call(command) @@ -150,7 +152,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) + if builder.codesign: + sign_file_or_directory(package_filepath) package_files += [(package_filepath, package_filename)] |