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
Raw Normal View History

2023-03-16 22:37:14 +00:00
#!/bin/bash
2023-03-16 22:26:54 +00:00
2023-03-16 23:16:53 +00:00
set -e
2023-03-16 22:26:54 +00:00
nemu_build() {
2023-03-16 23:16:53 +00:00
echo " --> Building nemu-base"
wasm-pack build base --target web
echo " --> Building nemu-arch-x86"
wasm-pack build architectures/x86 --target web
2023-03-16 22:26:54 +00:00
}
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 ]=====!"