From e2c7771a6429b09015680950bb644aecb2d8bfd7 Mon Sep 17 00:00:00 2001 From: Tianmoy <95174435+Tianmoy@users.noreply.github.com> Date: Mon, 17 Mar 2025 20:19:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E7=8E=AF=E5=A2=83=E9=80=89=E9=A1=B9=E9=97=AA=E9=80=80?= =?UTF-8?q?=20conda=E6=97=A0=E6=B3=95=E6=BF=80=E6=B4=BB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 《关于两个电脑改文件没同步这档事》 --- MaiLauncher.bat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MaiLauncher.bat b/MaiLauncher.bat index 5b76a4312..7b876bd37 100644 --- a/MaiLauncher.bat +++ b/MaiLauncher.bat @@ -291,7 +291,7 @@ echo 3 - echo 4 - ⻷ set /p choice="ѡ(1-4): " -if "!choice!" == "4" ( +if "!choice!"=="4" ( echo Ҫ⻷ set /p no_venv_confirm="(Y/N): ....." if /i "!no_venv_confirm!"=="Y" ( @@ -306,14 +306,14 @@ if "!choice!" == "4" ( ) ) -if "!choice!" == "3" ( +if "!choice!"=="3" ( echo 棺ʹϵͳܵͻ timeout /t 2 >nul goto menu ) -if "!choice!" == "2" goto handle_conda -if "!choice!" == "1" goto handle_venv +if "!choice!"=="2" goto handle_conda +if "!choice!"=="1" goto handle_venv echo Ч룬1-4֮ timeout /t 2 >nul @@ -362,6 +362,7 @@ set /p choice=" if "!choice!"=="3" goto env_interaction if "!choice!"=="2" goto activate_conda if "!choice!"=="1" goto create_conda + echo Ч룬1-3֮ timeout /t 2 >nul goto conda_menu @@ -374,14 +375,14 @@ if "!CONDA_ENV!"=="" ( ) conda create -n !CONDA_ENV! python=3.13 -y || ( echo ʧܣ룺!errorlevel! - pause + timeout /t 10 >nul goto conda_menu ) goto activate_conda :activate_conda set /p "CONDA_ENV=ҪĻƣ" -conda activate !CONDA_ENV! || ( +call conda activate !CONDA_ENV! || ( echo ʧܣԭ echo 1. echo 2. conda쳣