Base 1.13 implementation
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
set -e
|
||||
basedir="$(cd "$1" && pwd -P)"
|
||||
workdir="$basedir/work"
|
||||
version="ver/1.13"
|
||||
paperbasedir="$basedir/work/Paper"
|
||||
paperworkdir="$basedir/work/Paper/work"
|
||||
|
||||
@@ -16,6 +17,7 @@ if [ "$2" == "--setup" ] || [ "$3" == "--setup" ] || [ "$4" == "--setup" ]; then
|
||||
rm Minecraft/ -r
|
||||
fi
|
||||
git clone https://github.com/Akarin-project/Minecraft.git
|
||||
cd "Minecraft" && git checkout "$version"
|
||||
fi
|
||||
|
||||
cd "$paperbasedir"
|
||||
@@ -25,6 +27,8 @@ fi
|
||||
|
||||
echo "[Akarin] Ready to build"
|
||||
(
|
||||
cd "$paperworkdir/BuildData" && git checkout "$version"
|
||||
cd "$paperbasedir"
|
||||
echo "[Akarin] Touch sources.."
|
||||
|
||||
cd "$paperbasedir"
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
(
|
||||
set -e
|
||||
basedir="$pwd"
|
||||
basedir="$(pwd -P)"
|
||||
version="pre/1.13"
|
||||
|
||||
(git submodule update --init --remote && chmod +x scripts/build.sh && ./scripts/build.sh "$basedir" "$1" "$2" "$3") || (
|
||||
(git submodule update --init --remote && cd "work/Paper" && git checkout "$version" && cd "$basedir" && chmod +x scripts/build.sh && ./scripts/build.sh "$basedir" "$1" "$2" "$3") || (
|
||||
echo "Failed to build Akarin"
|
||||
exit 1
|
||||
) || exit 1
|
||||
|
||||
Reference in New Issue
Block a user