summaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun13
1 files changed, 12 insertions, 1 deletions
diff --git a/run b/run
index 9d3b6db..70e8d91 100755
--- a/run
+++ b/run
@@ -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