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.
2023-03-16 22:37:14 +00:00
|
|
|
#!/bin/bash
|
2023-03-16 22:26:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
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 ]=====!"
|