Skip to content

Commit 6fef0c9

Browse files
committed
0.8.2
1 parent 9f11486 commit 6fef0c9

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -64,39 +64,38 @@ Command help:
6464
Example :
6565

6666
```
67-
user@pp /data/git/pygbag $ python3 -m pygbag --help your.app.folder
68-
*pygbag 0.7.3*
67+
user@pp /data/git/pygbag $ py -m pygbag --help test/main.py
68+
*pygbag 0.8.2*
69+
115: cache 0.7.2 mismatch, want 0.8.2, cleaning ...
6970
70-
Serving python files from [/data/git/pygbag/your.app.folder/build/web]
71+
Serving python files from [/data/git/pygbag/test/build/web]
7172
7273
with no security/performance in mind, i'm just a test tool : don't rely on me
73-
usage: __main__.py [-h] [--bind ADDRESS] [--PYBUILD PYBUILD] [--app_name APP_NAME] [--ume_block UME_BLOCK] [--can_close CAN_CLOSE]
74-
[--cache CACHE] [--package PACKAGE] [--title TITLE] [--version VERSION] [--build] [--html] [--no_opt]
75-
[--archive] [--icon ICON] [--cdn CDN] [--template TEMPLATE] [--ssl SSL] [--port [PORT]]
74+
usage: __main__.py [-h] [--bind ADDRESS] [--PYBUILD PYBUILD] [--app_name APP_NAME] [--ume_block UME_BLOCK] [--can_close CAN_CLOSE] [--cache CACHE] [--package PACKAGE] [--title TITLE] [--version VERSION] [--build] [--html] [--no_opt] [--archive] [--icon ICON] [--cdn CDN] [--template TEMPLATE] [--ssl SSL]
75+
[--port [PORT]]
7676
7777
options:
7878
-h, --help show this help message and exit
7979
--bind ADDRESS Specify alternate bind address [default: localhost]
8080
--PYBUILD PYBUILD Specify python version [default:3.11]
81-
--app_name APP_NAME Specify user facing name of application [default:your.app.folder]
81+
--app_name APP_NAME Specify user facing name of application [default:test]
8282
--ume_block UME_BLOCK
8383
Specify wait for user media engagement before running [default:1]
8484
--can_close CAN_CLOSE
8585
Specify if window will ask confirmation for closing [default:0]
8686
--cache CACHE md5 based url cache directory
8787
--package PACKAGE package name, better make it unique
8888
--title TITLE App nice looking name
89-
--version VERSION override prebuilt version path [default:0.7.3]
89+
--version VERSION override prebuilt version path [default:0.8.2]
9090
--build build only, do not run test server
9191
--html build as html with embedded assets (pygame-script)
9292
--no_opt turn off assets optimizer
9393
--archive make build/web.zip archive for itch.io
9494
--icon ICON icon png file 32x32 min should be favicon.png
95-
--cdn CDN web site to cache locally [default:https://pygame-web.github.io/pygbag/0.0/]
95+
--cdn CDN web site to cache locally [default:https://pygame-web.github.io/archives/0.8/]
9696
--template TEMPLATE index.html template [default:default.tmpl]
9797
--ssl SSL enable ssl with server.pem and key.pem
9898
--port [PORT] Specify alternate port [default: 8000]
99-
10099
```
101100

102101
unlisted developper options:

pygbag/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from pathlib import Path
99

10-
__version__ = "0.8.1"
10+
__version__ = "0.8.2"
1111

1212
# hack to test git cdn build without upgrading pygbag
1313
# beware can have side effects when file packager behaviour must change !

pygbag/__main__.py

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def no_op(cls, *argv, **kw):
153153

154154
set_ps1 = no_op
155155

156+
set_ps2 = no_op
157+
156158
prompt = no_op
157159

158160
is_browser = False

pygbag/testserver.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def send_head(self):
209209

210210
file_size = fs[6]
211211

212-
if self.path.endswith(".py"):
212+
if path.endswith(".py"):
213213
if VERB:
214214
print(" --> do_GET(%s)" % path)
215215
if fstring_decode:
@@ -221,13 +221,13 @@ def send_head(self):
221221
file_size = len(content)
222222
f = io.BytesIO(content)
223223

224-
elif self.path.endswith(".json"):
224+
elif path.endswith(".json"):
225225
if VERB:
226226
print()
227227
print(self.path)
228228
print()
229229

230-
elif self.path.endswith(".html"):
230+
elif path.endswith(".html"):
231231
if VERB:
232232
print("REPLACING", path, CDN, PROXY)
233233
content = f.read()

static/default.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
print("""
44
Loading {{cookiecutter.title}} from {{cookiecutter.archive}}.apk
55
Pygbag Version : {{cookiecutter.version}}
6-
Template Version : 0.7.3
6+
Template Version : 0.8.2
77
Python : {{cookiecutter.PYBUILD}}
88
CDN URL : {{cookiecutter.cdn}}
99
Screen : {{cookiecutter.width}}x{{cookiecutter.height}}

static/noctx.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
print("""
44
Loading {{cookiecutter.title}} from {{cookiecutter.archive}}.apk
55
Pygbag Version : {{cookiecutter.version}}
6-
Template Version : 0.7.2
6+
Template Version : 0.8.2
77
Python : {{cookiecutter.PYBUILD}}
88
CDN URL : {{cookiecutter.cdn}}
99
Screen : {{cookiecutter.width}}x{{cookiecutter.height}}

0 commit comments

Comments
 (0)