30 lines
420 B
Bash
Executable File
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 ]=====!"
|