From 57197db76a39838fb18291f255e663dffe40e846 Mon Sep 17 00:00:00 2001 From: Tianmoy <95174435+Tianmoy@users.noreply.github.com> Date: Mon, 17 Mar 2025 17:30:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9conda=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=20=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MaiLauncher.bat | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/MaiLauncher.bat b/MaiLauncher.bat index 3e1c6065c..7d33946b3 100644 --- a/MaiLauncher.bat +++ b/MaiLauncher.bat @@ -200,7 +200,7 @@ if !errorlevel! neq 0 ( ) ) ) else ( - call :RED_WARNING "警告:MongoDB服务未运行,将导致应用程序无法访问数据库!" + echo "警告:MongoDB服务未运行,将导致MaiMBot无法访问数据库!" ) ) else ( echo MongoDB服务已运行 @@ -345,24 +345,11 @@ goto menu :handle_conda where conda >nul 2>&1 || ( - echo 未检测到conda,是否安装Miniconda? - set /p conda_confirm="安装?(Y/N): " - if /i "!conda_confirm!"=="N" ( - goto env_interaction - ) - - echo 正在安装Miniconda... - winget install --id Anaconda.Miniconda3 -e || ( - echo 安装失败,错误码:!errorlevel! - pause - goto env_interaction - ) - if exist "%UserProfile%\Miniconda3\Scripts\conda.exe" ( - call "%UserProfile%\Miniconda3\Scripts\conda.exe" init cmd.exe - echo 安装完成后请重启脚本 - timeout /t 10 >nul - exit /b - ) + echo 未检测到conda,可能原因: + echo 1. 未安装Miniconda + echo 2. conda配置异常 + timeout /t 10 >nul + goto env_interaction ) :conda_menu