feat: 添加轻量打包和OCR自动安装功能

- 添加Windows打包脚本 build.bat
- 更新打包文档 BUILD.md(轻量版方案)
- OCR模块:添加首次运行时自动安装PaddleOCR的功能
- 主窗口:添加OCR安装检测和提示逻辑
- 创建应用入口 src/main.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
congsh
2026-02-12 10:14:10 +08:00
parent c4a77f8aa4
commit 154d53dbfd
8 changed files with 301 additions and 5 deletions

19
src/main.py Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CutThenThink 应用入口
截图 → OCR解析 → AI理解并分类 → 形成备注和执行计划
"""
import sys
import os
# 添加src目录到路径
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_dir)
from gui.main_window import main
if __name__ == "__main__":
main()