leaningtech / webvm

Virtual Machine for the Web

Home Page:https://webvm.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any hosting/installation instructions?

phlummox opened this issue · comments

It seems like the code in the repo cannot be directly hosted on a web server in its current state.

A number of spots in the code hard-code the URL https://cheerpxdemos.leaningtech.com/publicdeploy/CX_VERSION/cx.js, but this is not actually a working URL – it gives an HTTP 404 error. For instance, one spot where it occurs is:

var cxFile = "https://cheerpxdemos.leaningtech.com/publicdeploy/CX_VERSION/cx.js";

which was introduced in commit 1e5b9bc.

Presumably, the "CX_VERSION" should be replaced by a valid version number (e.g. 20221125, which was what commit 1e5b9bc replaced, or 20230116, which is what the version deployed at https://webvm.io/ currently uses).

Perhaps you could include a mention of this in the README, and suggest where people might find valid version numbers?

(Also, if the above bug is fixed, by e.g. running sed -i 's/CX_VERSION/20230116/g' *.html, then the getSharedArrayBufferMissingMessage in index.html seems to be wrongly triggered:

getSharedArrayBufferMissingMessage: function ()

But I'll report that as a separate issue.)

Thank you for reporting this. I've added instructions on how to self host to the README as you requested. If you follow the steps there, you shouldn't get a SharedArrayBuffer error, but please open a new issue if it continues to occur.

Awesome, many thinks for that. Will do.