builder: add option to make manifest update conditional

This commit is contained in:
Davide Cavalca 2023-07-20 08:34:26 -07:00
parent 340844f960
commit 1711c0e46a

View File

@ -203,6 +203,7 @@ def package(target):
@cli.command() @cli.command()
@click.argument("target") @click.argument("target")
@click.option("--manifest/--no-manifest", default=True)
def upload(target): def upload(target):
if target not in TARGETS.keys(): if target not in TARGETS.keys():
fail(f"Unknown target: {target}") fail(f"Unknown target: {target}")
@ -210,6 +211,7 @@ def upload(target):
target = TARGETS[target] target = TARGETS[target]
packageUpload(target) packageUpload(target)
if manifest:
manifestUpdate() manifestUpdate()
uploadToS3("merged_installer_data.json", MANIFEST) uploadToS3("merged_installer_data.json", MANIFEST)