#!/bin/bash mkdir web wget https://github.com/copy/v86/releases/download/latest/libv86.js \ --directory-prefix web wget https://github.com/copy/v86/releases/download/latest/v86.wasm \ --directory-prefix web wget https://github.com/copy/v86/releases/download/latest/v86-fallback.wasm \ --directory-prefix web wget https://github.com/copy/v86/archive/refs/tags/latest.tar.gz \ --output-document - \ | tar -xz --strip-components 2 --directory web \ v86-latest/bios/seabios.bin \ v86-latest/bios/vgabios.bin cat >web/index.html < Emulator
EOF