3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 04:20:04 +01:00
Paper/scripts/paperclip.sh

24 Zeilen
680 B
Bash

2016-04-02 05:55:54 +02:00
#!/usr/bin/env bash
(
set -e
basedir="$(cd "$1" && pwd -P)"
2016-04-02 05:55:54 +02:00
workdir="$basedir/work"
2021-03-16 18:30:17 +01:00
revision="$(cat "$basedir"/revision.txt | tr -d '\n')"
2016-04-02 05:55:54 +02:00
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
paperjar="$basedir/Paper-Server/target/paper-$mcver.jar"
2021-03-16 18:30:17 +01:00
vanillajar="$workdir/Minecraft/$mcver-$revision/$mcver.jar"
2016-04-02 05:55:54 +02:00
(
cd "$workdir/Paperclip"
mvn clean package "-Dmcver=$mcver" "-Dpaperjar=$paperjar" "-Dvanillajar=$vanillajar"
)
cp "$workdir/Paperclip/assembly/target/paperclip-${mcver}.jar" "$basedir/paperclip.jar"
2016-04-02 05:55:54 +02:00
echo ""
echo ""
echo ""
echo "Build success!"
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
) || exit 1