Version command w/ ability to modify api

This commit is contained in:
Sotr
2019-03-19 03:22:01 +08:00
parent 21ce404147
commit 5c33cc3aba
2 changed files with 340 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ echo "[Akarin] Ready to build"
cd "$paperbasedir"
if [ "$2" == "--fast" ] || [ "$3" == "--fast" ] || [ "$4" == "--fast" ]; then
echo "[Akarin] Test and repatch has been skipped"
\cp -rf "$basedir/src/api" "$paperbasedir/Paper-API/src/main/java"
\cp -rf "$basedir/src" "$paperbasedir/Paper-Server/"
\cp -rf "$basedir/pom.xml" "$paperbasedir/Paper-Server/"
mvn clean install -DskipTests
@@ -38,6 +39,7 @@ echo "[Akarin] Ready to build"
rm -rf Paper-API/src
rm -rf Paper-Server/src
./paper patch
\cp -rf "$basedir/src/api" "$paperbasedir/Paper-API/src/main/java"
\cp -rf "$basedir/src" "$paperbasedir/Paper-Server/"
\cp -rf "$basedir/pom.xml" "$paperbasedir/Paper-Server/"
mvn clean install -DskipTests