fix: 移除build.bat中文注释避免编码问题

- 将所有中文注释改为英文
- 保持脚本功能不变

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
congsh
2026-02-12 10:31:01 +08:00
parent a2d731e91b
commit 8bc9cad901

View File

@@ -1,17 +1,25 @@
@echo off @echo off
REM ================================ REM ================================
REM CutThenThink Windows 打包脚本 REM CutThenThink Windows Build Script
REM ================================ REM ================================
REM 使用 Python 打包,避免路径问题
REM Change to project directory and run packaging
cd /d "%~dp0" 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 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 ( if errorlevel 1 (
echo 打包失败! echo Build Failed!
pause pause
exit /b 1 exit /b 1
) )
echo ================================ echo ================================
echo 打包完成! echo Build Complete!
echo 可执行文件: dist\CutThenThink.exe 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. echo.
pause pause