Pipeline Release: Use Add-On Bundle to Update Add-Ons #269

Merged
Showing only changes of commit 484eccd23f - Show all commits

View File

@ -169,23 +169,12 @@ def create_latest_addons_zip(name: str, temp_dir: Path):
output_dir = Path(temp_dir).joinpath(name)
output_dir.mkdir()
pipeline_release_dir = Path(__file__).parent
# 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)
addons_dir = Path(__file__).parents[2].joinpath("scripts-blender/addons")
zipped_release = shutil.make_archive(
temp_dir.joinpath(name),
'zip',
temp_dir,
name,
addons_dir,
)
checksum = generate_checksum(zipped_release)
chechsum_name = name + ".zip.sha256"