diff --git a/build.bat b/build.bat index 4fcd793..8774a86 100644 --- a/build.bat +++ b/build.bat @@ -1,37 +1,36 @@ @echo off setlocal -chcp 65001 -echo === 尝试激活虚拟环境 === +echo === Activating virtual environment === if exist ".venv\Scripts\activate.bat" ( call .venv\Scripts\activate.bat ) else ( - echo 未发现虚拟环境,尝试创建中... + echo Virtual environment not found. Creating... python -m venv .venv if errorlevel 1 ( - echo [错误] 创建虚拟环境失败,请确认是否已安装 Python。 + echo [ERROR] Failed to create virtual environment. Please ensure Python is installed. pause exit /b 1 ) - echo 虚拟环境创建成功,开始激活... + echo Virtual environment created. Activating... call .venv\Scripts\activate.bat ) -echo === 安装依赖项 === +echo === Installing dependencies === pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -r requirements.txt if errorlevel 1 ( - echo [错误] pip 安装依赖失败! + echo [ERROR] pip failed to install dependencies. pause exit /b 1 ) -echo === 使用 pyinstaller 构建 === +echo === Building with pyinstaller === python .\utils\hook.py pyinstaller .\main.spec if errorlevel 1 ( - echo [错误] 构建失败! + echo [ERROR] Build failed. pause exit /b 1 ) -echo === 构建完成 === +echo === Build completed ===