Pipeline Release: Use Add-On Bundle to Update Add-Ons #269
@ -169,23 +169,12 @@ def create_latest_addons_zip(name: str, temp_dir: Path):
|
|||||||
|
|
||||||
output_dir = Path(temp_dir).joinpath(name)
|
output_dir = Path(temp_dir).joinpath(name)
|
||||||
output_dir.mkdir()
|
output_dir.mkdir()
|
||||||
pipeline_release_dir = Path(__file__).parent
|
addons_dir = Path(__file__).parents[2].joinpath("scripts-blender/addons")
|
||||||
|
|
||||||
# Incase script has been invoked from different directory
|
|
||||||
if os.getcwd() != str(pipeline_release_dir):
|
|
||||||
os.chdir(pipeline_release_dir)
|
|
||||||
|
|
||||||
cmd_list = ("./package_local.py", str(output_dir))
|
|
||||||
process = subprocess.Popen(cmd_list, shell=False)
|
|
||||||
if process.wait() != 0:
|
|
||||||
print("Add-On Package Locally Failed")
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
zipped_release = shutil.make_archive(
|
zipped_release = shutil.make_archive(
|
||||||
temp_dir.joinpath(name),
|
temp_dir.joinpath(name),
|
||||||
'zip',
|
'zip',
|
||||||
temp_dir,
|
addons_dir,
|
||||||
name,
|
|
||||||
)
|
)
|
||||||
checksum = generate_checksum(zipped_release)
|
checksum = generate_checksum(zipped_release)
|
||||||
chechsum_name = name + ".zip.sha256"
|
chechsum_name = name + ".zip.sha256"
|
||||||
|
Loading…
Reference in New Issue
Block a user