diff --git a/src/en_US/docs/manual/source-code.md b/src/en_US/docs/manual/source-code.md index f659623..b135917 100644 --- a/src/en_US/docs/manual/source-code.md +++ b/src/en_US/docs/manual/source-code.md @@ -93,10 +93,7 @@ Most distributions come with Git pre-installed. If not, please install it from t Then, in the location where you want to install BAAH, open the terminal and run the following. ``` cmd -# If you have good network connection to GitHub, run this git clone https://github.com/BlueArchiveArisHelper/BAAH.git -# If not, run the following -git clone https://gh-proxy.com/BlueArchiveArisHelper/BAAH.git ``` Don't close the window, run `cd BAAH` to enter the folder, and install dependencies. diff --git a/src/zh_CN/docs/manual/quick-start.md b/src/zh_CN/docs/manual/quick-start.md index 5497da2..405cca1 100644 --- a/src/zh_CN/docs/manual/quick-start.md +++ b/src/zh_CN/docs/manual/quick-start.md @@ -60,7 +60,7 @@ description: 3 步完成 BlueArchive Aris Helper 部署!MuMu 模拟器设置 == Linux **Linux** -首先,确保你的系统内包含Docker,可以输入一下命令查看 +首先,确保你的系统内包含Docker或podman,可以输入一下命令查看 ``` bash # 对于ROOT用户 @@ -159,10 +159,51 @@ For more help on how to use Docker, head to https://docs.docker.com/go/guides/ 然后,拉取镜像,创建并运行容器。 +镜像发布: [Github Package](https://github.com/BlueArchiveArisHelper/BAAH/pkgs/container/baah) + +:::: tabs + +== docker + +**docker** + ``` bash -docker run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest +# 如果你使用模拟器/其他Android容器,使用端口转发 +sudo docker run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest +# # 南京大学镜像站 +sudo docker run -d --name BAAH -p 8000:8000 ghcr.nju.edu.cn/bluearchivearishelper/baah:latest +# # 国内版本(不推荐) +sudo docker run -d --name BAAH -p 8000:8000 docker.cnb.cool/ycawa/baah:latest + +# 如果你需要连接远程Android设备,请在宿主机开启ADB Server,并使用host模式 +sudo docker run -d --name BAAH --net=host ghcr.io/bluearchivearishelper/baah:latest +# # 南京大学镜像站 +sudo docker run -d --name BAAH --net=host ghcr.nju.edu.cn/bluearchivearishelper/baah:latest +# # 国内版本(不推荐) +sudo docker run -d --name BAAH --net=host docker.cnb.cool/ycawa/baah:latest ``` +== podman + +``` bash +# 推荐在系统级运行BAAH容器 +# 如果你使用模拟器/其他Android容器,使用端口转发 +podman run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest +# # 南京大学镜像站 +podman run -d --name BAAH -p 8000:8000 ghcr.nju.edu.cn/bluearchivearishelper/baah:latest +# # 国内版本(不推荐) +podman run -d --name BAAH -p 8000:8000 docker.cnb.cool/ycawa/baah:latest + +# 如果你需要连接远程Android设备,请在宿主机开启ADB Server,并使用host模式 +podman run -d --name BAAH --net=host ghcr.io/bluearchivearishelper/baah:latest +# # 南京大学镜像站 +podman run -d --name BAAH --net=host ghcr.nju.edu.cn/bluearchivearishelper/baah:latest +# # 国内版本(不推荐) +podman run -d --name BAAH --net=host docker.cnb.cool/ycawa/baah:latest +``` + +:::: + 随后打开浏览器,打开 `http://:8000` 在服务器设置中,选择你游玩的 BA 服务器。 diff --git a/src/zh_CN/docs/manual/source-code.md b/src/zh_CN/docs/manual/source-code.md index 2444401..ed88f26 100644 --- a/src/zh_CN/docs/manual/source-code.md +++ b/src/zh_CN/docs/manual/source-code.md @@ -93,7 +93,7 @@ brew install git # 如果你连接 GitHub 的网络良好,运行这个 git clone https://github.com/BlueArchiveArisHelper/BAAH.git # 如果不好,运行下列内容 -git clone https://gh-proxy.com/BlueArchiveArisHelper/BAAH.git +git clone https://v6.gh-proxy.com/github.com/BlueArchiveArisHelper/BAAH.git ``` 不要关闭窗口,运行 `cd BAAH` 进入文件夹,安装依赖。