From 5636a2977efde269bafce14b5e49d493bfbc9ec9 Mon Sep 17 00:00:00 2001 From: AadityaBasisth Date: Sun, 5 Oct 2025 23:43:17 +0530 Subject: [PATCH] pygbag: add page --- pages/common/pygbag.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/pygbag.md diff --git a/pages/common/pygbag.md b/pages/common/pygbag.md new file mode 100644 index 00000000000000..913bfec9eb10de --- /dev/null +++ b/pages/common/pygbag.md @@ -0,0 +1,29 @@ +# pygbag + +> Build and serve Python projects for the web (WebAssembly) using Emscripten. +> Used mainly with pygame-based applications. +> More information: . + +- Build the current Python project into a web bundle: +`pygbag build` + +- Serve the web bundle locally on port 8000: +`pygbag serve --port {{8000}}` + +- Specify a different directory to serve: +`pygbag serve {{path/to/build_directory}}` + +- Clean previously generated build artifacts: +`pygbag clean` + +- Enable debug mode while serving: +`pygbag serve --debug` + +- Export a project to a distributable zip file: +`pygbag export` + +- Show available templates for web packaging: +`pygbag --template` + +- Display help for all commands: +`pygbag --help`