Added logic to create offline.zip artifact #2410
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This MR goal is to create in
dist/folder a redistributable version of PyScript that works "offline", where offline means the current released version actually runs entirely from thelocalhostwithout reaching out any particular CDN to bootstrap Pyodide or MicroPython.This also adds a feature-detection version of the
mini-coiutility so that evenpython -m http.serveshould work as expected without requiring any special header, but we still recommend to use such headers to be sure things will work as expected.This MR fixes #2346
Instructions
From
pyscript/corefolder run:This will create the
offline.zipfile intodistfolder.We need to do this on release time only so it's not automated per each MR neither this can be easily tested out of the box without leaking artifacts around.
Changes
dist/offlinefolderdist/into such folderIdeally, this should be reachable via our release channel (it's a 7MB zip file) so that we can update the docs and state: just download this zip, unzip it, enter the folder and start a server ... and that should be it.
Checklist
make buildworks locally.