Merge branch 'MaiM-with-u:main' into main

This commit is contained in:
infinitycat
2025-04-05 00:14:57 +08:00
committed by GitHub
3 changed files with 29 additions and 6 deletions

View File

@@ -1,8 +1,7 @@
<!-- 提交前必读 --> <!-- 提交前必读 -->
- 🔴**当前项目处于重构阶段2025.3.14-** - ✅ 接受与main直接相关的Bug修复提交到dev分支
- ✅ 接受与main直接相关的Bug修复提交到main-fix分支 - 新增功能类pr需要经过issue提前讨论否则不会被合并
- ⚠️ 冻结:所有新功能开发和非紧急重构
# 请填写以下内容 # 请填写以下内容
(删除掉中括号内的空格,并替换为**小写的x** (删除掉中括号内的空格,并替换为**小写的x**
1. - [ ] `main` 分支 **禁止修改**,请确认本次提交的分支 **不是 `main` 分支** 1. - [ ] `main` 分支 **禁止修改**,请确认本次提交的分支 **不是 `main` 分支**

View File

@@ -1,5 +1,7 @@
# 麦麦MaiCore-MaiMBot (编辑中) # 麦麦MaiCore-MaiMBot (编辑中)
## 新版0.6.0部署前先阅读https://docs.mai-mai.org/manual/usage/mmc_q_a
<div align="center"> <div align="center">
![Python Version](https://img.shields.io/badge/Python-3.9+-blue) ![Python Version](https://img.shields.io/badge/Python-3.9+-blue)
@@ -65,7 +67,8 @@
- [📚 核心Wiki文档](https://docs.mai-mai.org) - 项目最全面的文档中心,你可以了解麦麦有关的一切 - [📚 核心Wiki文档](https://docs.mai-mai.org) - 项目最全面的文档中心,你可以了解麦麦有关的一切
### 最新版本部署教程(MaiCore版本) ### 最新版本部署教程(MaiCore版本)
- [🚀 最新版本部署教程](https://docs.mai-mai.org/manual/deployment/refactor_deploy.html) - 基于MaiCore的新版本部署方式与旧版本不兼容 - [🚀 最新版本部署教程](https://docs.mai-mai.org/manual/deployment/mmc_deploy.html) - 基于MaiCore的新版本部署方式与旧版本不兼容
## 🎯 功能介绍 ## 🎯 功能介绍

View File

@@ -369,7 +369,28 @@ run_installation() {
# 选择分支 # 选择分支
choose_branch() { choose_branch() {
BRANCH=refactor BRANCH=$(whiptail --title "🔀 选择分支" --radiolist "请选择要安装的分支:" 15 60 4 \
"main" "稳定最新版(推荐)" ON \
"classical" "经典版" OFF \
"custom" "自定义分支" OFF 3>&1 1>&2 2>&3)
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
whiptail --msgbox "操作取消!" 10 60
exit 1
fi
if [[ "$BRANCH" == "custom" ]]; then
BRANCH=$(whiptail --title "🔀 自定义分支" --inputbox "请输入自定义分支名称:" 10 60 "refactor" 3>&1 1>&2 2>&3)
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
whiptail --msgbox "输入取消!" 10 60
exit 1
fi
if [[ -z "$BRANCH" ]]; then
whiptail --msgbox "🚫 分支名称不能为空!" 10 60
exit 1
fi
fi
} }
choose_branch choose_branch