aboutsummaryrefslogtreecommitdiffhomepage
path: root/paperclip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'paperclip.sh')
-rwxr-xr-xpaperclip.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/paperclip.sh b/paperclip.sh
index 7d720f9eaf..351226da50 100755
--- a/paperclip.sh
+++ b/paperclip.sh
@@ -1,14 +1,16 @@
#!/usr/bin/env bash
+basedir="$(cd "$1" && pwd -P)"
+
cp ./PaperSpigot-Server/target/paperspigot*-SNAPSHOT.jar ./Paperclip/paperspigot-1.8.8.jar
cp ./work/1.8.8/1.8.8.jar ./Paperclip/minecraft_server.1.8.8.jar
cd ./Paperclip
-mvn clean package
+mvn clean package -Dmcver=1.8.8 "-Dpaperjar=$basedir/Paperclip/paperspigot-1.8.8.jar" "-Dvanillajar=$basedir/Paperclip/minecraft_server.1.8.8.jar"
cd ..
-cp ./Paperclip/target/paperclip*-SNAPSHOT.jar ./Paperclip.jar
+cp ./Paperclip/assembly/target/paperclip*.jar ./paperclip.jar
echo ""
echo ""
echo ""
echo "Build success!"
-echo "Copied final jar to $(pwd)/Paperclip.jar" \ No newline at end of file
+echo "Copied final jar to $(pwd)/paperclip.jar"