From babe00245ad358e47eb3906efb3cf2fc3c2272e8 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Tue, 28 Jan 2020 14:52:09 +0100 Subject: [PATCH] Comment on crater-deploy.sh --- tools/crater-deploy.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/crater-deploy.sh b/tools/crater-deploy.sh index 7b270cf783..c4de2af784 100755 --- a/tools/crater-deploy.sh +++ b/tools/crater-deploy.sh @@ -1,30 +1,35 @@ #!/usr/bin/env bash +# use the amount of commits behind master as a version number behind=$(git rev-list --right-only --count master...crater) # https://stackoverflow.com/a/27940027/6056864 +# configure some android values echo "sdk.dir=/Users/quezler/Library/Android/sdk" > local.properties sed -i'.original' 's/applicationId "io.anuke.mindustry"/applicationId "io.anuke.mindustry.craters"/g' android/build.gradle sed -i'.original' 's/"io.anuke.mindustry"/"io.anuke.mindustry.craters"/g' android/AndroidManifest.xml sed -i'.original' 's/Mindustry