PaperMC/paperclip.sh

20 lines
540 B
Bash
Raw Normal View History

2016-01-26 07:36:28 +01:00
#!/usr/bin/env bash
2016-03-31 02:50:23 +02:00
basedir=`pwd`
workdir=$basedir/work
mcver=$(cat BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
decompiledir="$workdir/$mcver"
paperjar="$basedir/$(ls ./Paper-Server/target/paper*-SNAPSHOT.jar)"
vanillajar="${decompiledir}/${mcver}.jar"
2016-01-26 07:36:28 +01:00
cd ./Paperclip
2016-03-31 02:50:23 +02:00
mvn clean package -Dmcver=${mcver} -Dpaperjar="${paperjar}" -Dvanillajar="${vanillajar}"
2016-01-26 07:36:28 +01:00
cd ..
2016-03-31 02:53:39 +02:00
cp ./Paperclip/target/paperclip-${mcver}.jar ./paperclip.jar
2016-01-26 07:36:28 +01:00
echo ""
echo ""
echo ""
echo "Build success!"
2016-03-31 02:53:39 +02:00
echo "Copied final jar to $(pwd)/paperclip.jar"