From db53baba2321c14d2c37fc9dbb718c1905782303 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Tue, 6 Jan 2026 16:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=BE=93=E5=87=BA=E4=BF=A1=E6=81=AF=EF=BC=8C=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=B8=BA=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.bat | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 ===