Files
cutThenThink/build.bat

26 lines
781 B
Batchfile
Raw Normal View History

@echo off
REM ================================
REM CutThenThink Windows Build Script
REM ================================
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 Build Failed!
pause
exit /b 1
)
echo ================================
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