Changeset View
Changeset View
Standalone View
Standalone View
build_files/buildbot/worker_pack.py
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | def pack_mac(builder): | ||||
| buildbot_dir = os.path.join(builder.blender_dir, 'build_files', 'buildbot') | buildbot_dir = os.path.join(builder.blender_dir, 'build_files', 'buildbot') | ||||
| bundle_script = os.path.join(buildbot_dir, 'worker_bundle_dmg.py') | bundle_script = os.path.join(buildbot_dir, 'worker_bundle_dmg.py') | ||||
| command = [bundle_script] | command = [bundle_script] | ||||
| command += ['--dmg', package_filepath] | command += ['--dmg', package_filepath] | ||||
| if info.is_development_build: | if info.is_development_build: | ||||
| background_image = os.path.join(release_dir, 'buildbot', 'background.tif') | background_image = os.path.join(release_dir, 'buildbot', 'background.tif') | ||||
| command += ['--background-image', background_image] | command += ['--background-image', background_image] | ||||
| if builder.codesign: | |||||
| command += ['--codesign'] | |||||
| command += [builder.install_dir] | command += [builder.install_dir] | ||||
| buildbot_utils.call(command) | buildbot_utils.call(command) | ||||
| create_buildbot_upload_zip(builder, [(package_filepath, package_filename)]) | create_buildbot_upload_zip(builder, [(package_filepath, package_filename)]) | ||||
| def pack_win(builder): | def pack_win(builder): | ||||
| info = buildbot_utils.VersionInfo(builder) | info = buildbot_utils.VersionInfo(builder) | ||||
| Show All 17 Lines | def pack_win(builder): | ||||
| if info.version_cycle == 'release': | if info.version_cycle == 'release': | ||||
| # Installer only for final release builds, otherwise will get | # Installer only for final release builds, otherwise will get | ||||
| # 'this product is already installed' messages. | # 'this product is already installed' messages. | ||||
| command = ['cpack', '-G', 'WIX'] | command = ['cpack', '-G', 'WIX'] | ||||
| buildbot_utils.call(builder.command_prefix + command) | buildbot_utils.call(builder.command_prefix + command) | ||||
| package_filename = package_name + '.msi' | package_filename = package_name + '.msi' | ||||
| package_filepath = os.path.join(builder.build_dir, package_filename) | package_filepath = os.path.join(builder.build_dir, package_filename) | ||||
| if builder.codesign: | |||||
| sign_file_or_directory(package_filepath) | sign_file_or_directory(package_filepath) | ||||
| package_files += [(package_filepath, package_filename)] | package_files += [(package_filepath, package_filename)] | ||||
| create_buildbot_upload_zip(builder, package_files) | create_buildbot_upload_zip(builder, package_files) | ||||
| def pack_linux(builder): | def pack_linux(builder): | ||||
| blender_executable = os.path.join(builder.install_dir, 'blender') | blender_executable = os.path.join(builder.install_dir, 'blender') | ||||
| Show All 36 Lines | |||||