Skip to content

refactor(web): extract web host runtime and streamline exports#1339

Draft
aofei wants to merge 1 commit into
goplus:devfrom
aofei:webruntime
Draft

refactor(web): extract web host runtime and streamline exports#1339
aofei wants to merge 1 commit into
goplus:devfrom
aofei:webruntime

Conversation

@aofei
Copy link
Copy Markdown
Member

@aofei aofei commented Mar 10, 2026

Move the shared web host runtime into internal/webhost so the repository keeps a direct ownership boundary around runner.html, game.js, and related host assets.

Assemble web runtime bundles from the engine template, embedded host assets, ispx.wasm, and wasm_exec.js instead of staging host files through $GOPATH/bin/ispx.

Rename the reusable runtime export command to exportwebruntime, remove the public exporttemplateweb concept, and keep the template export step internal to the build scripts.

Also remove XBuilder-specific hooks from the shared host runtime so the base web runtime stays product-neutral.

@gemini-code-assist

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

Move the shared web host runtime into `internal/webhost` so the
repository keeps a direct ownership boundary around `runner.html`,
`game.js`, and related host assets.

Assemble web runtime bundles from the engine template, embedded host
assets, `ispx.wasm`, and `wasm_exec.js` instead of staging host files
through `$GOPATH/bin/ispx`.

Rename the reusable runtime export command to `exportwebruntime`,
remove the public `exporttemplateweb` concept, and keep the template
export step internal to the build scripts.

Also remove XBuilder-specific hooks from the shared host runtime so the
base web runtime stays product-neutral.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@aofei aofei changed the title refactor: extract web host runtime and pack it explicitly refactor(web): extract web host runtime and streamline exports Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant