kami-blue/build.sh

37 lines
734 B
Bash
Raw Normal View History

2019-12-20 03:52:30 +00:00
#!/bin/bash
START_TIME="$(date +%s)"
echo "BUILD: started at $(date -d "@$START_TIME")"
cd ../
mkdir KAMI-Blue-beta/
2019-12-24 01:24:22 +00:00
cp -r kamiblue/gradle* KAMI-Blue-beta/
cp -r kamiblue/gradlew* KAMI-Blue-beta/
cp -r kamiblue/gradle/ KAMI-Blue-beta/
cp -r kamiblue/build.sh KAMI-Blue-beta/
cp -r kamiblue/build.gradle KAMI-Blue-beta/
cp -r kamiblue/src/ KAMI-Blue-beta/
2020-01-25 15:02:01 +00:00
echo "BUILD: copied"
2019-12-20 03:52:30 +00:00
cd KAMI-Blue-beta/ || exit
2019-12-20 03:52:30 +00:00
echo "BUILD: cleaning"
./gradlew clean
2020-01-25 15:02:01 +00:00
echo "BUILD: building"
2019-12-20 03:52:30 +00:00
./gradlew build rmOld copy
cd ../
rm -rf KAMI-Blue-beta/
2020-01-25 15:02:01 +00:00
echo "BUILD: deleted"
2019-12-20 03:52:30 +00:00
cd kamiblue/ || exit
2019-12-20 03:52:30 +00:00
2020-01-25 15:02:01 +00:00
echo "BUILD: SUCCESFUL"
2019-12-20 03:52:30 +00:00
END_TIME="$(date +%s)"
echo "BUILD: took" $(($(date +%s)-$START_TIME)) "seconds"
echo "BUILD: finished at" "$(date -d "@$END_TIME")"