Support low-mem build
This commit is contained in:
@@ -7,9 +7,14 @@ workdir="$basedir/work"
|
||||
paperbasedir="$basedir/work/Paper"
|
||||
paperworkdir="$basedir/work/Paper/work"
|
||||
|
||||
if [ "$2" == "--setup" ]; then
|
||||
if [ "$2" == "--setup" ] || [ "$3" == "--setup" ] || [ "$4" == "--setup" ]; then
|
||||
echo "[Akarin] Setup Paper.."
|
||||
(
|
||||
if [ "$2" == "--remote" ] || [ "$3" == "--remote" ] || [ "$4" == "--remote" ]; then
|
||||
cd "$paperworkdir"
|
||||
git clone https://github.com/Akarin-project/Minecraft.git
|
||||
fi
|
||||
|
||||
cd "$paperbasedir"
|
||||
./paper jar
|
||||
)
|
||||
@@ -22,7 +27,7 @@ echo "[Akarin] Ready to build"
|
||||
yes|cp -rf "$basedir/sources/server/pom.xml" "$paperbasedir/Paper-Server/"
|
||||
|
||||
cd "$paperbasedir"
|
||||
if [ "$2" == "--fast" ] || [ "$3" == "--fast" ]; then
|
||||
if [ "$2" == "--fast" ] || [ "$3" == "--fast" ] || [ "$4" == "--fast" ]; then
|
||||
echo "[Akarin] Test has been skipped"
|
||||
mvn clean install -DskipTests
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user