mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 16:50:17 +01:00
14 lines
379 B
Bash
Executable file
14 lines
379 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
|
|
(git submodule update --init && ./scripts/remap.sh "$basedir" && ./scripts/decompile.sh "$basedir" && ./scripts/init.sh "$basedir" && ./scripts/applyPatches.sh "$basedir") || (
|
|
echo "Failed to build Paper"
|
|
exit 1
|
|
) || exit 1
|
|
if [ "$2" == "--jar" ]; then
|
|
mvn clean install && ./scripts/paperclip.sh "$basedir"
|
|
fi
|
|
)
|