feat:将A_memorix导入修改为submodule的导入方式

This commit is contained in:
A-Dawn
2026-03-24 13:45:12 +08:00
parent df872187d8
commit 9d1977446b
14 changed files with 413 additions and 0 deletions

View File

@@ -830,6 +830,14 @@ run_installation() {
echo -e "${RED}克隆MaiCore仓库失败${RESET}"
exit 1
}
echo -e "${GREEN}初始化MaiCore子模块...${RESET}"
# 使用与主仓一致的 GitHub 加速前缀,避免子模块直连 github.com 失败
git -C MaiBot config submodule.plugins/A_memorix.url "$GITHUB_REPO/A-Dawn/A_memorix.git"
git -C MaiBot submodule sync --recursive
git -C MaiBot submodule update --init --recursive || {
echo -e "${RED}初始化MaiCore子模块失败${RESET}"
exit 1
}
echo -e "${GREEN}克隆 maim_message 包仓库...${RESET}"
git clone $GITHUB_REPO/MaiM-with-u/maim_message.git || {