From 8bc9cad901d114ad8aeb7c9249a768662d100fb1 Mon Sep 17 00:00:00 2001 From: congsh Date: Thu, 12 Feb 2026 10:31:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4build.bat=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E6=B3=A8=E9=87=8A=E9=81=BF=E5=85=8D=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将所有中文注释改为英文 - 保持脚本功能不变 Co-Authored-By: Claude Opus 4.6 --- build.bat | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/build.bat b/build.bat index b397d16..2ba33dd 100644 --- a/build.bat +++ b/build.bat @@ -1,17 +1,25 @@ @echo off REM ================================ -REM CutThenThink Windows 打包脚本 +REM CutThenThink Windows Build Script REM ================================ -REM 使用 Python 打包,避免路径问题 + +REM Change to project directory and run packaging cd /d "%~dp0" + +REM Run PyInstaller packaging python -m PyInstaller --noconfirm --name "CutThenThink" --windowed --onefile --add-data "src:src" --hidden-import=PyQt6.QtCore --hidden-import=PyQt6.QtGui --hidden-import=PyQt6.QtWidgets --hidden-import=sqlalchemy src/main.py if errorlevel 1 ( - echo 打包失败! + echo Build Failed! pause exit /b 1 ) + echo ================================ -echo 打包完成! -echo 可执行文件: dist\CutThenThink.exe +echo Build Complete! +echo Executable: dist\CutThenThink.exe +echo File size (without PaddleOCR): ~30-50 MB +echo ================================ +echo. +echo On first run, the app will auto-download and install PaddleOCR. echo. pause