diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-01 21:19:19 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-01 21:19:19 +0200 |
commit | 97c4b0a57016bf319d0b282b5f40c098474f2ed1 (patch) | |
tree | 80d4e708e92fa231817aabfc2d030316da31d02e /run | |
parent | faf8301a06f171539f7e7ad3b9034c54aa740c31 (diff) | |
download | RustAndDust-97c4b0a57016bf319d0b282b5f40c098474f2ed1.zip RustAndDust-97c4b0a57016bf319d0b282b5f40c098474f2ed1.tar.gz |
improve run cmd
Diffstat (limited to 'run')
-rwxr-xr-x | run | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,14 @@ #! /bin/bash [ -d out ] && rm -fr out -./gradlew clean packs desktop:run + +if [ $# -gt 0 ]; then + if [ "$1" = "c" ]; then + ./gradlew clean packs desktop:run + elif [ "$1" = "a" ]; then + ./gradlew android:installDebug android:run + else + ./gradlew desktop:run + fi +else + ./gradlew desktop:run +fi |