25 lines
317 B
Bash
Executable File
25 lines
317 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
nemu_build() {
|
|
echo " --> Building NerdEMU"
|
|
wasm-pack build --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 ]=====!"
|