Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythons.js as comipled in release #184

Open
ManPython opened this issue Nov 15, 2024 · 5 comments
Open

pythons.js as comipled in release #184

ManPython opened this issue Nov 15, 2024 · 5 comments
Labels
question Further information is requested

Comments

@ManPython
Copy link

ManPython commented Nov 15, 2024

I not have in pygbag-0.9.2\build\web\archives\0.0 a pythons.js or not exist pygbag-0.9.2\build\web\archives\0.9.2 after run wasm-build-all
https://github.com/pygame-web/pygbag/releases/tag/0.9.2
https://pygame-web.github.io/archives/0.9/pythons.js - is this 0.9.2 or 0.9 ?
Want suggest to add in to releases pythons.js
https://github.com/pygame-web/pygbag/releases/tag/0.9.2/pythons.js

@pmp-p
Copy link
Member

pmp-p commented Nov 16, 2024

static files ( not compiled ) are served from here https://github.com/pygame-web/pygbag/tree/main/static. if you host them you need to copy them at the right place.

0.9 is pypi "stable" version with tested wheels and runtime from https://pygame-web.github.io/archives/0.9/

0.9.2 is git version and use cp312-0.9.2 devel. wheels against CI runtime from https://pygame-web.github.io/pygbag/0.0/

@pmp-p pmp-p added the question Further information is requested label Nov 16, 2024
@ManPython ManPython reopened this Nov 16, 2024
@ManPython
Copy link
Author

Ok, but also refering to the my local pygbag-0.9.2\build\web\ after run wasm-build-all as not compiled correctly I think.

@pmp-p
Copy link
Member

pmp-p commented Jan 6, 2025

not sure what you mean, but pythons.js and wasm files are not local, when built they are served from internet (via github pages), when served from pygbag they come from pygbag proxy cache to avoid re-downloading them when refreshing project.

@ManPython
Copy link
Author

I'm talking about, that should be local, eg. as option for reason if some bandwith around github can be blocked.
Coder more often should build option to check new version from remote source than base on remote always as updated, etc. not compatible to user code after remote changes.

@pmp-p
Copy link
Member

pmp-p commented Jan 11, 2025

local files only make sense for a final game release.
which is not the current target of pygbag. it will be the goal of next project called "bigbag" planned for 2025 q4.

pygbag uses a CDN to speed up loading all games published on itch / github pages static hosting types. That way all games jams share the same wasm/js from browser cache. This is very important on mobile.

if you want to host for yourself (requires SSL enabled server) see the --cdn option and cdn content from https://github.com/pygame-web/archives and https://github.com/pygame-web/pygbag/tree/gh-pages/0.0

i can't provide support outside github pages cdn and behaviour may (will!) change when pypi index allow for WASM wheels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants