Skip to content

Commit 60835f2

Browse files
committed
v2.7.6: Add smart project sandboxes, venv cleanup, and AI translation studio
- feat(i18n): add update_locales_ai.py GUI tool for 1-click LLM-powered translation updates - feat(venv): support smart project sandbox sensing and one-click local venv cleanup - refactor(build): implement self-healing venv fallback & Linux/macOS process group termination - fix(i18n): sync new UI strings for venv cleanup and fallback alerts with zh_CN dictionary
1 parent ce8d2a6 commit 60835f2

20 files changed

Lines changed: 5847 additions & 2422 deletions

‎CHANGELOG.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ QPyPack 项目的所有重要变更都将记录在此文件中。
1111

1212
# 更新日志 (Changelog)
1313

14+
---
15+
## [2.8.0] - 2026-08-08
16+
17+
#### 新增
18+
- **项目沙箱智能感知**:基于脚本路径哈希与 Python 版本/架构生成唯一沙箱标识,加载项目脚本时自动感知识别已有环境并快速复用。
19+
- **虚拟环境一键清理**:设置面板新增项目虚拟环境清理功能,自动扫描项目关联的虚拟环境,提供一键清理功能。
20+
- **AI翻译工具**:新增 `update_locales_ai.py` 现代化 GUI 翻译管理工具,填写大模型API后可自动一键补全更新程序的翻译。
21+
22+
#### 改进
23+
- **环境自愈与容错降级**:重构虚拟环境有效性校验逻辑,检测到环境损坏或清理失败时自动降级至临时沙箱,确保打包流程零中断。
24+
- **跨平台进程彻底回收**:优化打包任务取消逻辑,Linux / macOS 平台开启独立会话组销毁,彻底解决中断构建时的后台残留进程。
25+
- **环境检测与降级告警**:优化 Python 解释器版本与架构(x64/x86)检测超时处理,增加完善的异常捕获与日志降级提示。
26+
- **界面文案精炼**:重构依赖项与虚拟环境复选框文本,统一清理确认对话框按钮样式与风险提示。
27+
28+
#### 修复
29+
- **国际化词条同步**:补全并同步环境清理、时间戳签名日志及降级告警等新增 UI 词条的简体中文映射。
30+
1431
---
1532

1633
## [2.7.5] - 2026-08-06

‎CHANGELOG_EN.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
---
1111

12+
## [2.8.0] - 2026-08-08
13+
14+
#### Added
15+
- **Smart Project Sandbox Sensing**: Generates unique sandbox identifiers based on script path hashes and Python version/architecture. Automatically detects and reuses existing virtual environments upon loading project scripts.
16+
- **One-Click Virtual Environment Cleanup**: Added a project virtual environment cleanup feature in the Settings panel, automatically scanning associated virtual environments and providing one-click cleanup to free up disk space.
17+
- **AI Translation Tool**: Introduced `update_locales_ai.py`, a modern GUI translation management studio that automatically completes and updates application translations with one click using LLM APIs.
18+
19+
#### Improved
20+
- **Self-Healing Environment & Fallback**: Refactored virtual environment validation logic. Automatically falls back to a temporary sandbox if environment corruption or purge failure is detected, ensuring zero-interruption builds.
21+
- **Thorough Cross-Platform Process Reclamation**: Optimized build cancellation logic by introducing independent process session group termination on Linux / macOS, completely eliminating leftover background processes upon canceling builds.
22+
- **Environment Detection & Fallback Alerts**: Optimized timeout handling for Python interpreter version and architecture (x64/x86) detection, adding robust exception handling and fallback log alerts.
23+
- **UI Copy Refinement**: Refactored dependency and virtual environment checkbox labels, unifying cleanup confirmation dialog button styles and risk warnings.
24+
25+
#### Fixed
26+
- **i18n String Synchronization**: Completed and synchronized Simplified Chinese mappings for new UI strings, including environment cleanup, timestamp signing logs, and fallback warnings.
27+
28+
---
29+
1230
## [2.7.5] - 2026-08-06
1331

1432
#### Added

‎qpypack/locales/ar_SA.json‎

Lines changed: 344 additions & 0 deletions
Large diffs are not rendered by default.

‎qpypack/locales/de_DE.json‎

Lines changed: 309 additions & 300 deletions
Large diffs are not rendered by default.

‎qpypack/locales/es_ES.json‎

Lines changed: 309 additions & 301 deletions
Large diffs are not rendered by default.

‎qpypack/locales/fr_FR.json‎

Lines changed: 309 additions & 302 deletions
Large diffs are not rendered by default.

‎qpypack/locales/it_IT.json‎

Lines changed: 317 additions & 0 deletions
Large diffs are not rendered by default.

‎qpypack/locales/ja_JP.json‎

Lines changed: 309 additions & 299 deletions
Large diffs are not rendered by default.

‎qpypack/locales/ko_KR.json‎

Lines changed: 309 additions & 301 deletions
Large diffs are not rendered by default.

‎qpypack/locales/nl_NL.json‎

Lines changed: 317 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)