added a doc command to the run script
This commit is contained in:
parent
747ec6e9c9
commit
61a1052b3e
3 changed files with 7 additions and 4 deletions
5
run
5
run
|
@ -4,7 +4,10 @@ option=$1
|
|||
|
||||
if [ -z "$option" ]
|
||||
then
|
||||
cargo build -p game --release && cp ./target/arduboy/release/libgame.a ./Wrapper-Project/lib/libgame.a && cd Wrapper-Project/ && pio run -v -t upload && cp ./.pio/build/arduboy/firmware.hex ./.pio/build/game.hex && pio run -t clean && rm lib/libgame.a && cd ..
|
||||
cargo doc -p arduboy-rust && rm -r ./docs/doc/ && cp -r ./target/arduboy/doc ./docs/
|
||||
elif [ "$option" = "doc" ]
|
||||
then
|
||||
cargo build -p snake --release && cp ./target/arduboy/release/libsnake.a ./Wrapper-Project/lib/libgame.a && cd Wrapper-Project/ && pio run -v -t upload && cp ./.pio/build/arduboy/firmware.hex ./.pio/build/snake.hex && pio run -t clean && rm lib/libgame.a && cd ..
|
||||
elif [ "$option" = "snake" ]
|
||||
then
|
||||
cargo build -p snake --release && cp ./target/arduboy/release/libsnake.a ./Wrapper-Project/lib/libgame.a && cd Wrapper-Project/ && pio run -v -t upload && cp ./.pio/build/arduboy/firmware.hex ./.pio/build/snake.hex && pio run -t clean && rm lib/libgame.a && cd ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue