feature: create zip, fixes #9

This commit is contained in:
Matthias Jung
2026-02-22 23:49:45 +01:00
parent 0ffd0a3c24
commit 3596ce80d4
2 changed files with 43 additions and 0 deletions
+5
View File
@@ -23,6 +23,7 @@ def main(
output: Annotated[str | None, typer.Option("--output", "-o", help="Destination directory to build to.")] = None,
render_editions: Annotated[bool, typer.Option(help="Skip building editions.")] = True,
render_solutions: Annotated[bool, typer.Option(help="Skip building solutions.")] = True,
build_zip: Annotated[bool, typer.Option(help="Whether to build a zip file of the output.")] = False,
) -> None:
conf = config.Config(content_path=input, build_path=output)
bd = build.Build(conf)
@@ -42,6 +43,10 @@ def main(
# Copy assets to build folder
bd.build_assets()
if build_zip:
# Build zip file of output
bd.build_zip()
if __name__ == "__main__":
app()