2016-04-02 03:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-04-03 07:23:19 +00:00
|
|
|
|
|
|
|
(
|
|
|
|
set -e
|
2016-04-03 08:35:51 +00:00
|
|
|
basedir="$(cd "$1" && pwd -P)"
|
2016-04-02 03:55:54 +00:00
|
|
|
workdir="$basedir/work"
|
|
|
|
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
2017-09-23 18:30:55 +00:00
|
|
|
paperjar="$basedir/Paper-Server/target/paper-$mcver.jar"
|
2021-03-16 18:43:56 +00:00
|
|
|
vanillajar="$workdir/Minecraft/$mcver/$mcver.jar"
|
2016-04-02 03:55:54 +00:00
|
|
|
|
2016-04-02 23:34:27 +00:00
|
|
|
(
|
|
|
|
cd "$workdir/Paperclip"
|
2016-04-03 07:23:19 +00:00
|
|
|
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar"
|
2016-04-02 23:34:27 +00:00
|
|
|
)
|
2017-09-23 18:17:20 +00:00
|
|
|
cp "$workdir/Paperclip/assembly/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
|
2016-04-02 03:55:54 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "Build success!"
|
2016-04-03 08:35:51 +00:00
|
|
|
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
|
2018-07-30 21:37:24 +00:00
|
|
|
) || exit 1
|