diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 0000000..4a40f03 --- /dev/null +++ b/build/build.sh @@ -0,0 +1 @@ +make CC=emcc LDFLAGS="--pre-js pre.js --preload-file fw_jump.bin --preload-file linux_6.2 --preload-file rootfs.img --shell-file shell_minimal.html" diff --git a/build/coi-serviceworker.min.js b/build/coi-serviceworker.min.js new file mode 100644 index 0000000..d39e88d --- /dev/null +++ b/build/coi-serviceworker.min.js @@ -0,0 +1,2 @@ +/*! coi-serviceworker v0.1.6 - Guido Zuidhof, licensed under MIT */ +"undefined"==typeof window?(self.addEventListener("install",(()=>self.skipWaiting())),self.addEventListener("activate",(e=>e.waitUntil(self.clients.claim()))),self.addEventListener("message",(e=>{e.data&&"deregister"===e.data.type&&self.registration.unregister().then((()=>self.clients.matchAll())).then((e=>{e.forEach((e=>e.navigate(e.url)))}))})),self.addEventListener("fetch",(function(e){"only-if-cached"===e.request.cache&&"same-origin"!==e.request.mode||e.respondWith(fetch(e.request).then((e=>{if(0===e.status)return e;const r=new Headers(e.headers);return r.set("Cross-Origin-Embedder-Policy","require-corp"),r.set("Cross-Origin-Opener-Policy","same-origin"),new Response(e.body,{status:e.status,statusText:e.statusText,headers:r})})).catch((e=>console.error(e))))}))):(()=>{const e={shouldRegister:()=>!0,shouldDeregister:()=>!1,doReload:()=>window.location.reload(),quiet:!1,...window.coi},r=navigator;e.shouldDeregister()&&r.serviceWorker&&r.serviceWorker.controller&&r.serviceWorker.controller.postMessage({type:"deregister"}),!1===window.crossOriginIsolated&&e.shouldRegister()&&(window.isSecureContext?r.serviceWorker&&r.serviceWorker.register(window.document.currentScript.src).then((t=>{!e.quiet&&console.log("COOP/COEP Service Worker registered",t.scope),t.addEventListener("updatefound",(()=>{!e.quiet&&console.log("Reloading page to make use of updated COOP/COEP Service Worker."),e.doReload()})),t.active&&!r.serviceWorker.controller&&(!e.quiet&&console.log("Reloading page to make use of COOP/COEP Service Worker."),e.doReload())}),(r=>{!e.quiet&&console.error("COOP/COEP Service Worker failed to register:",r)})):!e.quiet&&console.log("COOP/COEP Service Worker not registered, a secure context is required."))})(); diff --git a/build/fw_jump.bin b/build/fw_jump.bin new file mode 100644 index 0000000..70c57a2 Binary files /dev/null and b/build/fw_jump.bin differ diff --git a/build/linux_6.2 b/build/linux_6.2 new file mode 100644 index 0000000..8d6db8f Binary files /dev/null and b/build/linux_6.2 differ diff --git a/build/pre.js b/build/pre.js new file mode 100644 index 0000000..3db2c04 --- /dev/null +++ b/build/pre.js @@ -0,0 +1 @@ +Module['arguments'] = ['/fw_jump.bin', '-k', '/linux_6.2', '-i', '/rootfs.img', '-m', '64M']; diff --git a/build/rootfs.img b/build/rootfs.img new file mode 100644 index 0000000..b7db07a Binary files /dev/null and b/build/rootfs.img differ diff --git a/build/shell_minimal.html b/build/shell_minimal.html new file mode 100644 index 0000000..971c58a --- /dev/null +++ b/build/shell_minimal.html @@ -0,0 +1,141 @@ + + + + + + RVVM Web Demo + + + + +
Loading...
+
Downloading...
+
+ +
+
+ +
+ +
+ +
+ + {{{ SCRIPT }}} + +