Cleanup and restructure the project

This commit is contained in:
DemonWav 2016-04-01 22:55:54 -05:00
parent cd3d8fb27e
commit 8b66d99e73
21 changed files with 193 additions and 115 deletions

17
scripts/paperclip.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
basedir="$1"
workdir="$basedir/work"
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
paperjar="../../Paper-Server/target/paper-$mcver.jar"
vanillajar="../$mcver/$mcver.jar"
cd "$workdir/Paperclip"
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar"
cd ..
cp "$workdir/Paperclip/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
echo ""
echo ""
echo ""
echo "Build success!"
echo "Copied final jar to $basedir/paperclip.jar"