add my build process

This commit is contained in:
Bella 2019-12-19 22:52:30 -05:00
parent 9a406255db
commit c43b681758
2 changed files with 83 additions and 6 deletions

12
.gitignore vendored
View File

@ -5,13 +5,13 @@
#gradle* #gradle*
#gradlew* #gradlew*
#gradle/ #gradle/
buildext.sh #buildext.sh
deltags.sh #deltags.sh
buildexttmp.sh #buildexttmp.sh
#build.gradle #build.gradle
builddonator.sh #builddonator.sh
buildkeygen.sh #buildkeygen.sh
build.sh #build.sh
# donator # donator

77
build.sh Executable file
View File

@ -0,0 +1,77 @@
#!/bin/bash
START_TIME="$(date +%s)"
echo "BUILD: started at $(date -d "@$START_TIME")"
echo "BUILD: cd back"
cd ../
echo "BUILD: copied"
mkdir KAMI-Blue-beta/
cp -r kami-fix-npe/gradle* KAMI-Blue-beta/
cp -r kami-fix-npe/gradlew* KAMI-Blue-beta/
cp -r kami-fix-npe/gradle/ KAMI-Blue-beta/
cp -r kami-fix-npe/build.sh KAMI-Blue-beta/
cp -r kami-fix-npe/build.gradle KAMI-Blue-beta/
cp -r kami-fix-npe/src/ KAMI-Blue-beta/
#echo "BUILD: copied modules and tools"
#cp kamiblue/sdashb.modules kamiblue-buildtools/
#cp kamiblue/build*.sh kamiblue-buildtools/
#echo "BUILD: copied gradle"
#cp kamiblue/build.gradle kamiblue-buildtools/
#cp kamiblue/gradle.properties kamiblue-buildtools/
#echo "BUILD: committing to git"
#cd kamiblue-buildtools/
#git add .
#git commit -m "Auto commit from building"
#git push
#cd ../
echo "BUILD: cd in"
cd KAMI-Blue-beta/
#echo "BUILD: removing donator modules"
#rm -rf src/main/java/me/zeroeightsix/kami/module/modules/sdashb/capes/
#rm -rf src/main/java/me/zeroeightsix/kami/module/modules/sdashb/render/CapeGUI.java
#rm -rf src/main/java/me/zeroeightsix/kami/mixin/client/MixinAbstractClientPlayer.java
#curl https://raw.githubusercontent.com/S-B99/KAMI/features-master/src/main/java/me/zeroeightsix/kami/mixin/client/MixinMinecraft.java -o src/main/java/me/zeroeightsix/kami/mixin/client/MixinMinecraft.java
#curl https://raw.githubusercontent.com/S-B99/KAMI/features-master/src/main/resources/mixins.kami.json -o src/main/resources/mixins.kami.json
echo "BUILD: removing keygen"
rm -rf src/main/java/me/zeroeightsix/kami/module/modules/sdashb/experimental/Gen.java
echo "BUILD: removing net minecraft"
rm -rf src/main/java/net/minecraft
#echo "BUILD: removing org lwjgl"
#rm -rf src/main/java/org/lwjgl
#echo "BUILD: removing com google"
#rm -rf src/main/java/org/google
echo "BUILD: cleaning"
./gradlew clean
#echo "BUILD: setup workspace"
#./gradlew setupDecompWorkspace
echo "BUILD: build command"
./gradlew build rmOld copy
echo "BUILD: cd back"
cd ../
echo "BUILD: deleting"
rm -rf KAMI-Blue-beta/
echo "BUILD: cd in"
cd kami-fix-npe/
echo "BUILD: finished"
END_TIME="$(date +%s)"
echo "BUILD: took" $(($(date +%s)-$START_TIME)) "seconds"
echo "BUILD: finished at" $(date -d "@$END_TIME")