2016-04-02 05:55:54 +02:00
|
|
|
#!/usr/bin/env bash
|
2016-04-03 09:23:19 +02:00
|
|
|
|
|
|
|
(
|
|
|
|
set -e
|
2016-04-03 01:34:27 +02:00
|
|
|
basedir=$(realpath "$1")
|
2016-04-02 05:55:54 +02:00
|
|
|
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"
|
|
|
|
|
2016-04-03 01:34:27 +02:00
|
|
|
(
|
|
|
|
cd "$workdir/Paperclip"
|
2016-04-03 09:23:19 +02:00
|
|
|
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar"
|
2016-04-03 01:34:27 +02:00
|
|
|
)
|
2016-04-02 05:55:54 +02:00
|
|
|
cp "$workdir/Paperclip/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "Build success!"
|
2016-04-03 01:34:27 +02:00
|
|
|
echo "Copied final jar to "$(realpath "$basedir/paperclip.jar")
|
2016-04-03 09:23:19 +02:00
|
|
|
)
|