Commit Graph

8 Commits

Author SHA1 Message Date
congsh
a5897a1cd8 fix: 移除tkinter依赖,改用PyQt6实现
- message_handler.py: 重写为兼容模式,tkinter不可用时使用PyQt6
- result_widget.py: 完全重写为PyQt6版本
- models/__init__.py: 更新导出BaseModel而非Base
- build.bat: 添加PyQt6的hidden-import参数

这样可以解决Windows打包时tkinter模块找不到的问题
2026-02-12 11:25:14 +08:00
congsh
5ac2bd98d4 fix: 添加Pillow等模块的hidden-import参数
- 添加PIL及其子模块的hidden-import
- 添加numpy和pyperclip的hidden-import
- 添加--collect-all pyqt6确保完整打包
2026-02-12 11:14:06 +08:00
congsh
c6025d9858 fix: 修复Windows打包Python 3.13兼容性问题
- 升级SQLAlchemy到2.0.36+以支持Python 3.13
- 升级PyQt6到6.7.0+解决DLL加载问题
- 添加setuptools作为构建依赖
- 添加build/dist清理步骤
- 改进输出格式和错误信息
2026-02-12 10:41:27 +08:00
congsh
56b3c5a5b2 fix: 完善Windows打包脚本
- 修复 PyInstaller 和 Python 检测逻辑
- 使用 Python 模块检测(instead of where command)
- 统一依赖安装方式
- 添加 setuptools 检测
- 自动安装所有缺失的依赖包

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 10:38:44 +08:00
congsh
47c86c69ae fix: 修复Windows打包脚本依赖检查
- 检查 Python 是否正确安装
- 检查 PyQt6 是否可用
- 如果缺失则自动安装
- 提供清晰的错误提示和安装指引

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 10:32:31 +08:00
congsh
8bc9cad901 fix: 移除build.bat中文注释避免编码问题
- 将所有中文注释改为英文
- 保持脚本功能不变

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 10:31:01 +08:00
congsh
a2d731e91b fix: 修复Windows打包脚本
- 简化build.bat,使用Python命令直接打包
- 移除导致错误的^续行符

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 10:29:01 +08:00
congsh
154d53dbfd feat: 添加轻量打包和OCR自动安装功能
- 添加Windows打包脚本 build.bat
- 更新打包文档 BUILD.md(轻量版方案)
- OCR模块:添加首次运行时自动安装PaddleOCR的功能
- 主窗口:添加OCR安装检测和提示逻辑
- 创建应用入口 src/main.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 10:14:10 +08:00