mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 16:50:17 +01:00
22 lines
577 B
Bash
Executable file
22 lines
577 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
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"
|
|
)
|
|
cp "$workdir/Paperclip/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
|
|
|
|
echo ""
|
|
echo ""
|
|
echo ""
|
|
echo "Build success!"
|
|
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
|
|
)
|