mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
pygbag: add page (#18464)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# pygbag
|
||||
|
||||
> Package Pygame projects as WebAssembly to run in web browsers.
|
||||
> More information: <https://pygame-web.github.io>.
|
||||
|
||||
- Package a Pygame project and start a local test server:
|
||||
|
||||
`pygbag {{path/to/project_folder}}`
|
||||
|
||||
- Package using Python module syntax:
|
||||
|
||||
`python -m pygbag {{path/to/project_folder}}`
|
||||
|
||||
- Package and build without starting the test server:
|
||||
|
||||
`pygbag {{path/to/project_folder}} --build`
|
||||
|
||||
- Package with a specific template:
|
||||
|
||||
`pygbag {{path/to/project_folder}} --template {{template_name.tmpl}}`
|
||||
|
||||
- Package and create a ZIP archive for <https://itch.io>:
|
||||
|
||||
`pygbag {{path/to/project_folder}} --archive`
|
||||
|
||||
- Package with optimization turned off:
|
||||
|
||||
`pygbag {{path/to/project_folder}} --no_opt`
|
||||
|
||||
- Specify a custom port for the test server:
|
||||
|
||||
`pygbag {{path/to/project_folder}} --port {{8080}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pygbag {{[-h|--help]}}`
|
||||
Reference in New Issue
Block a user