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:
-rw-r--r--build_files/buildbot/slave_pack.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py
index 4e5d77b2a0a..3cab27c2ecf 100644
--- a/build_files/buildbot/slave_pack.py
+++ b/build_files/buildbot/slave_pack.py
@@ -123,7 +123,17 @@ else:
os.remove(f)
retcode = subprocess.call(['cpack', '-G', 'ZIP'])
result_file = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.zip')][0]
- os.rename(result_file, "{}.zip".format(builder))
+
+ # TODO(sergey): Such magic usually happens in SCon's packaging bu we don't have it
+ # in the CMake yet. For until then we do some magic here.
+ tokens = result_file.split('-')
+ blender_version = tokens[1].split('.')
+ blender_full_version = '.'.join(blender_version[0:2])
+ git_hash = tokens[2].split('.')[1]
+ platform = builder.split('_')[0]
+ builderified_name = 'blender-{}-{}-{}'.format(blender_full_version, git_hash, platform)
+
+ os.rename(result_file, "{}.zip".format(builderified_name))
# create zip file
try:
upload_zip = "buildbot_upload.zip"