Supports remote decompile

This commit is contained in:
Sotr
2019-03-04 18:57:06 +08:00
parent dc3c114449
commit a7fa67a9c3
5 changed files with 11 additions and 13 deletions

1
.gitmodules vendored
View File

@@ -1,3 +1,4 @@
[submodule "work/Paper"]
path = work/Paper
url = https://github.com/PaperMC/Paper.git
branch = master

View File

@@ -2,7 +2,7 @@
[![Powered by](https://img.shields.io/badge/Powered_by-Akarin_project-ee6aa7.svg?style=flat)](https://akarin.io)
[![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/fw2pJAj)
[![bStats](https://img.shields.io/badge/bStats-Torch-0099ff.svg?style=flat)](https://bstats.org/plugin/bukkit/Torch)
[![Circle CI](https://circleci.com/gh/Akarin-project/Akarin/tree/master.svg?style=svg)](https://circleci.com/gh/Akarin-project/Akarin/tree/ver/1.12.2)
[![Circle CI](https://circleci.com/gh/Akarin-project/Akarin/tree/master.svg?style=svg)](https://circleci.com/gh/Akarin-project/Akarin/tree/ver/master)
Akarin is currently **under heavy development** and contributions are welcome!

View File

@@ -10,6 +10,14 @@ paperworkdir="$basedir/work/Paper/work"
if [ "$2" == "--setup" ] || [ "$3" == "--setup" ] || [ "$4" == "--setup" ]; then
echo "[Akarin] Setup Paper.."
(
if [ "$2" == "--remote" ] || [ "$3" == "--remote" ] || [ "$4" == "--remote" ]; then
cd "$paperworkdir"
if [ -d "Minecraft" ]; then
rm Minecraft/ -r
fi
git clone https://github.com/Akarin-project/Minecraft.git
fi
cd "$paperbasedir"
./paper patch
)

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env bash
(
set -e
basedir="$(cd "$1" && pwd -P)"
(git submodule update --init --remote && git add . && git commit -m 'Upstream Paper') || (
echo "Failed to upstream"
exit 1
) || exit 1
)

1
work/Paper Submodule

Submodule work/Paper added at ffd51cbe2d