summaryrefslogtreecommitdiff
path: root/compile_and_test
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-06-17 08:12:18 +0300
commitdc3df3edd5843bde0c1335d6a8e460b2c832aa48 (patch)
treeaf13bfeee567f2351e35e1ef176d168fe37c8aac /compile_and_test
parent1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (diff)
full project files
Diffstat (limited to 'compile_and_test')
-rwxr-xr-xcompile_and_test12
1 files changed, 12 insertions, 0 deletions
diff --git a/compile_and_test b/compile_and_test
new file mode 100755
index 0000000..bd29ba7
--- /dev/null
+++ b/compile_and_test
@@ -0,0 +1,12 @@
+rm /home/foghrye4/.minecraft/mods/1.7.10/ihl-tools_n_machines-*.jar
+rm /home/foghrye4/Games/Forge_server/mods/1.7.10/ihl-tools_n_machines-*.jar
+./gradlew build
+zip ./build/libs/modid-1.0.jar "ihl*/*" --copy --out "/home/foghrye4/.minecraft/mods/1.7.10/ihl-tools_n_machines-0.$1-1.7.10.jar"
+cd src/main/resources
+zip -r /home/foghrye4/.minecraft/mods/1.7.10/ihl-tools_n_machines-0.$1-1.7.10.jar . -x *~
+cd ../java
+zip -r /home/foghrye4/.minecraft/mods/1.7.10/ihl-tools_n_machines-0.$1-1.7.10.jar ./assets/ -x *~
+cp /home/foghrye4/.minecraft/mods/1.7.10/ihl-tools_n_machines-0.$1-1.7.10.jar /home/foghrye4/Games/Forge_server/mods/1.7.10/ihl-tools_n_machines-0.$1-1.7.10.jar
+java -jar /home/foghrye4/Games/Minecraft.jar
+cd ../../..
+