mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-09-12 15:48:47 +02:00
26 lines
798 B
Bash
Executable File
26 lines
798 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copied from https://github.com/PaperMC/Paper/blob/d54ce6c17fb7a35238d6b9f734d30a4289886773/scripts/paperclip.sh
|
|
# License from Paper applies to this file
|
|
|
|
(
|
|
set -e
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
workdir="$basedir/Tuinity/Paper/work"
|
|
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
|
paperjar="$basedir/YAPFA-Server/target/yapfa-$mcver.jar"
|
|
vanillajar="$workdir/Minecraft/$mcver/$mcver.jar"
|
|
|
|
(
|
|
cd "$workdir/Paperclip"
|
|
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar"
|
|
)
|
|
cp "$workdir/Paperclip/assembly/target/paperclip-${mcver}.jar" "$basedir/yapfa-paperclip.jar"
|
|
|
|
echo ""
|
|
echo ""
|
|
echo ""
|
|
echo "Build success!"
|
|
echo "Copied final jar to $(cd "$basedir" && pwd -P)/yapfa-paperclip.jar"
|
|
) || exit 1
|