mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 14:34:41 +08:00
18 lines
523 B
Bash
18 lines
523 B
Bash
|
#!/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"
|