Skip to content

Commit

Permalink
document --archive for itch
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Jun 22, 2022
1 parent c04bb39 commit 67d4a42
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ asyncio.run( main() )
# asyncio.run is non block on pygame-wasm

```



usage:

pip3 install pygbag --user --upgrade
Expand All @@ -47,10 +44,18 @@ usage:
command help:

pygbag --help your_game_folder
```
```
user@pp /data/git/pygbag $ python3.8 -m pygbag --help test
*pygbag 0.0.9*

Serving python files from [/data/git/pygbag/test/build/web]

usage: __main__.py [-h] your_game_folder[/main.py]
with no security/performance in mind, i'm just a test tool : don't rely on me
usage: __main__.py [-h] [--bind ADDRESS] [--directory DIRECTORY] [--app_name APP_NAME] [--cache CACHE] [--package PACKAGE] [--version VERSION] [--build] [--archive] [--main MAIN] [--icon ICON] [--cdn CDN]
[--template TEMPLATE] [--ssl SSL] [--port [PORT]]

optional arguments:
-h, --help show this help message and exit
Expand All @@ -62,13 +67,13 @@ optional arguments:
--package PACKAGE package name, better make it unique
--version VERSION package name, please make it unique
--build build only, do not run test server
--archive make build/web.zip archive for itch.io
--main MAIN Specify main script[default:main.py]
--icon ICON package name, please make it unique
--cdn CDN web site to cache locally [default:https://pygame-web.github.io/pygbag/]
--template TEMPLATE index.html template
--ssl SSL enable ssl with server.pem and key.pem
--port [PORT] Specify alternate port [default: 8000]
```
Now navigate to http://localhost:8000 with a modern Browser.
Expand Down

0 comments on commit 67d4a42

Please sign in to comment.