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