15 Commits

Author SHA1 Message Date
zzy9001
2299deb841
fix: 修复 pygetwindow 导致非 Windows 平台启动失败 (#1127)
Co-authored-by: Claude <noreply@anthropic.com>
2026-07-26 10:03:07 +08:00
dependabot[bot]
9b44291d64
chore(deps): bump setuptools from 82.0.1 to 83.0.0 (#1148)
Signed-off-by: dependabot[bot] <support@github.com>
2026-07-25 11:45:15 +08:00
dependabot[bot]
74eda21033
chore(deps): bump py7zr from 1.1.0 to 1.1.3 (#1121)
Signed-off-by: dependabot[bot] <support@github.com>
2026-07-25 11:45:04 +08:00
dependabot[bot]
281da4433c
chore(deps): bump aiohttp from 3.14.0 to 3.14.1 (#1120)
Signed-off-by: dependabot[bot] <support@github.com>
2026-07-25 11:44:54 +08:00
dependabot[bot]
6a6bdc3a93
chore(deps): bump aiohttp from 3.13.5 to 3.14.0 (#1108)
Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 17:08:03 +08:00
moesnow
9880ad9a81
chore: 升级 openvino 至 2026.2.0 并恢复 Docker 基础镜像至 Python 3.14 2026-06-01 00:50:50 +08:00
dependabot[bot]
8272b34277
chore(deps): bump idna from 3.13 to 3.15 (#1073)
Signed-off-by: dependabot[bot] <support@github.com>
2026-05-20 14:34:13 +08:00
moesnow
ba0be136cb
Merge branch 'chore/python-3.14.5' 2026-05-20 02:04:41 +08:00
moesnow
600f4d369c
test: 添加全面的单元测试体系
- 配置 pytest 测试框架和开发依赖 (pytest, pytest-cov, pytest-qt)
- 添加 utils/ 模块测试: color, date, image_utils, console, command, singleton, logger, registry
- 添加 module/ 模块测试: workflow, config, notification, localization, ocr, screen, update
- 添加 app/ GUI 组件测试: trie, signal_bus, config, style_sheet, icon
- 添加 app/ 纯函数测试: warp_export, account_manager, schedule_dialog, check_update, log_interface, pushsettingcard, switchsettingcard
- 添加通知子模块测试: webhook, telegram, smtp, lark, kook, pac, notifiers
- 添加注册表模块测试: star_rail_setting, game_auto_hdr, gameaccount (winreg mock)
- 共 584 个测试用例通过,覆盖率 17%
2026-05-20 01:59:56 +08:00
moesnow
9d33c4dcd2
chore: 升级依赖版本至最新
- 升级 18 个依赖包至最新版本

- pandas 2.3.3 → 3.0.3(主版本升级,项目仅使用基础 API,兼容无问题)

- onnxruntime 1.24.4 → 1.26.0(仅 macOS/Linux,Windows 的 onnxruntime-directml 保持 1.24.4)

- 同步 requirements.txt 与 pyproject.toml 中的 numpy、opencv-python、opencc 版本

- 移除 charset_normalizer 警告注释(3.4.7 已修复)
2026-05-19 16:50:23 +08:00
moesnow
94f794f03e
ci: 将 PyInstaller 版本管理迁移至 pyproject.toml 的 build 依赖组
在 pyproject.toml 中新增 build 依赖组统一管理 PyInstaller 版本,
GitHub Actions 工作流改用 uv sync --group build 替代 uv pip install。
2026-05-18 16:16:26 +08:00
moesnow
2da45b1b55
feat: GitHub Actions 和 Dockerfile 统一迁移到 uv
- GitHub Actions 工作流从 pip 切换为 uv,使用 astral-sh/setup-uv 安装依赖
- Dockerfile 使用 uv 替代 pip,通过 COPY --from 获取 uv 二进制并固定版本号
- Docker 专属依赖整合到 pyproject.toml 的 dependency-groups 中,移除 requirements-docker.txt
- uv.lock 更新以包含 docker 依赖组
2026-05-15 04:49:43 +08:00
dependabot[bot]
0fd49033f7
chore(deps): bump urllib3 from 2.6.3 to 2.7.0 (#1053)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.3...2.7.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-12 15:09:51 +08:00
moesnow
41cca02b94
refactor: 重构更新系统为模块化架构
## 主要改动

### 1. 更新系统架构重构
- 将单文件 `updater.py` 拆分为 `module/update/` 下的独立模块:
  - `version_check.py` - 版本检查和更新检测逻辑
  - `update_engine.py` - 更新引擎核心逻辑
  - `downloader.py` - 文件下载器(支持断点续传)
  - `extractor.py` - 文件解压器(支持 7z 格式)
  - `download_proxy.py` - 代理配置处理
  - `helper_app.py` - 辅助应用管理
  - `update_window.py` - 更新进度窗口

### 2. 新增 7z 解压支持
- 添加 `py7zr` 依赖用于处理 7z 格式压缩包
- 同步更新 `pyproject.toml` 和 `requirements.txt`
- 更新 `uv.lock` 锁定文件

### 3. 任务系统适配
- 新增 `tasks/version/app_update.py` 应用更新任务
- 重构 `tasks/version/__init__.py` 适配新模块接口
- 更新 `utils/tasks.py` 添加新任务支持

### 4. 本地化更新
- 更新全部 5 个语言文件:
  - zh_CN.json - 简体中文
  - zh_TW.json - 繁体中文
  - en_US.json - 英语
  - ja_JP.json - 日语
  - ko_KR.json - 韩语
- 新增更新相关的翻译字符串

### 5. 构建配置调整
- 更新 `March7th Updater.spec` 适配新模块结构

### 6. 界面适配
- 更新 `app/tools/check_update.py` 检查更新界面适配新接口
- 更新 `main.py` 添加新的初始化逻辑

## 影响
- 提高代码可维护性和可测试性
- 支持更多压缩格式
- 更好的模块化设计
2026-05-05 01:13:42 +08:00
Guipeng Zhang
38f1213317
chore: add uv source-checkout workflow (#1003) 2026-04-24 16:10:10 +08:00