Add compile script
This commit is contained in:
parent
cf03a04786
commit
fb9902da44
|
@ -20,3 +20,5 @@ image.png
|
|||
/maps/
|
||||
/assets/
|
||||
out/
|
||||
|
||||
TheGame.jar
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
chmod +x lib/*.jar
|
||||
rm -rf tmp
|
||||
mkdir tmp
|
||||
javac -cp src/main/java:lib/gson-2.8.6.jar:lib/jopt-simple-6.0-alpha-3.jar \
|
||||
-target 1.9 -source 1.9 \
|
||||
-d tmp --module-path src/main/java \
|
||||
src/main/java/fr/ynerant/leveleditor/api/editor/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/client/main/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/editor/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/frame/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/game/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/game/mobs/*.java \
|
||||
src/main/java/fr/ynerant/leveleditor/game/towers/*.java
|
||||
cp -r src/main/resources/* tmp/
|
||||
unzip lib/gson-2.8.6.jar -x META-INF/MANIFEST.MF -d tmp
|
||||
unzip lib/jopt-simple-6.0-alpha-3.jar -x META-INF/MANIFEST.MF -d tmp
|
||||
cd tmp
|
||||
zip -r TheGame.jar *
|
||||
mv TheGame.jar ../
|
||||
cd ..
|
||||
rm -rf tmp
|
||||
chmod +x TheGame.jar
|
||||
echo "Successfully compiled to \"TheGame.jar\". To run: \"java -jar TheGame.jar\"".
|
Loading…
Reference in New Issue