This repository has been archived on 2023-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
nemu-old/build.sh

30 lines
420 B
Bash
Executable File

#!/bin/bash
set -e
nemu_build() {
echo " --> Building nemu-base"
wasm-pack build base --target web
echo " --> Building nemu-arch-x86"
wasm-pack build architectures/x86 --target web
}
nemu_run(){
echo " --> Starting HTTP server"
python3 -m http.server
}
echo "!=====[ NerdEMU build script ]=====!"
nemu_build
case $1 in
"test")
nemu_run
;;
esac
echo "!=====[ Finished ]=====!"