Added logic to create offline.zip artifact#2410
Merged
WebReflection merged 2 commits intopyscript:mainfrom Nov 24, 2025
Merged
Conversation
c01b768 to
c64bede
Compare
ntoll
approved these changes
Nov 24, 2025
Member
ntoll
left a comment
There was a problem hiding this comment.
Works for me. 😉
Next step is to integrate this into the GH action for cutting a release.
113e4b3 to
def86f9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.