mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
d54ce6c17f
This is so the CI server can pick up when applying patches fails, and mark the build as a failure.
16 lines
439 B
Bash
Executable File
16 lines
439 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
(
|
|
set -e
|
|
basedir="$(cd "$1" && pwd -P)"
|
|
gitcmd="git -c commit.gpgsign=false"
|
|
|
|
($gitcmd 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
|
|
) || exit 1
|