feat: add application icon and Windows identity for V1.1.3

This commit is contained in:
阿白叔 committed 2026-10-19 17:45:42 +08:00
1 parent 54c41d4525
commit 95c7f9b775
16 files changed
+203 -11

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# DxPartReplace V1.1.3
发布日期:2026-10-19。交付级别:评估试用,与既有版本一致。
新增应用图标,统一 EXE、窗口、任务栏和切换窗口显示,补充 Windows 文件版本信息。本版同时发布此前已验收的可选目标封装、原生 CLI 位号采集、执行保护及队列性能优化。
## 下载与使用
完整解压 `DxPartReplace-1.1.3.zip`,运行 `DxPartReplace.exe`。无需安装 Python,本机需要可用的 DxDesigner / Expedition Enterprise 7.9.5、许可证和已配置的中央库。
[中文教程及 GIF](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.3/README.md)。包内包含离线教程、默认 11 列 BOM 空表及封装使用说明。GIF 录制于 V1.1.2,步骤适用于本版,图标与版本号以本版为准。
## 本版变化
- 应用图标支持 16~256 像素,EXE 属性显示 1.1.3 版本。
- 目标封装可留空;留空时不主动覆写 Cell Name,可后续与中心库同步。明确选择时仍核验合法性、写入和保存重开结果。
- BOM 保持 11 列,优先使用原生 CLI 采集位号;导入报告区分通过、失败、未检查,保存前不写入计划。
- 修复窗口销毁后后台结果回调访问已释放控件的问题;保留退出等待后台安全收尾。
- 去掉队列中重复的路径解析与日志文件检查,保留逐步证据、fsync、原子发布和实时身份核验。
## 验证范围
业务流程沿用提交 e6ec267 的冻结候选验收:两个工程顺序替换、362 字符路径、错误及正确 BOM、保存重开、独立新 CAD 回读、层次及展开网络比对、日志窗口、新一轮、1.1.1 元数据升级和私有桌面释放均通过。仅目标 RV05 属性变化,其余 56 个器件及全部引脚、网络连接不变;原工程和中央库跟踪的 1033 个文件哈希未变。双工程执行 167 秒,千步模拟 21.09 秒,两者测量范围不同。
本次仅增加图标、应用身份和版本信息,另做源码构建检查、最终 ZIP 解压启动、图标与 Windows 版本资源检查。未把这些外观检查计作新一轮真实 CAD 替换。发布清单核对除 application/version 外的全部业务模块编译码及 VBS 与已验收候选一致。
详见[验收报告](../testing/2026-10-19-release-preparation.md)及[本版构建记录](v1.1.3-build.md)。
## 升级
关闭旧程序并备份 `data`,用本版配套的 EXE 与 `_internal` 运行,保留原数据。不同版本不要同时打开同一数据目录。中断且尚未核验的旧任务先按原流程恢复,保留日志和原始证据。
旧版本发布附件保持可下载。附件含 ZIP、BOM 空表、GIF、构建清单与 SHA256 校验文件;发布前逐项上传并回下载核对。
+36
View File
@@ -0,0 +1,36 @@
# V1.1.3 icon and packaging review — 2026-10-19
## Scope and verdict
Read-only review of application identity setup, icon assets/generator, package data, PyInstaller icon/data/version settings, Windows version resource, and the targeted test adjustments. No tests, CAD, Git commands, source edits, or release operations were performed. This report is the only output written.
**Approved for the final reviewed source/packaging design. No remaining Critical or Important findings.** The frozen-resource path issue identified during review is corrected. Final build and frozen runtime verification remain release prerequisites. The review does not invalidate the existing v1.1.2 artifact or authorize overwriting its attachments; v1.1.3 is a separate release scope.
## Resolved Important finding
### Resolve the runtime icon from a package module, not the frozen entry script directory
**Location:** `src/dx_productivity/trial_task_center/application.py:43`.
The initial `configure_application_identity` constructed `Path(__file__).parent / 'assets/app.ico'`. That works from the source package directory, but the spec supplies `application.py` as the executable's PYSOURCE entry script. PyInstaller's entry-script location differs from the data destination `_internal/dx_productivity/trial_task_center/assets/app.ico`.
That mismatch could leave a correct EXE/Explorer icon while the application/window QIcon is null. The final reviewed code now imports `dx_productivity.trial_task_center` and resolves the asset from that package module's `__file__`, matching both source and frozen package layouts.
The new regression replaces the entry module's `__file__` with a relocated script path and checks a non-null application icon and decoded 32-pixel pixmap. The retained red report records 1 failure; the green report records 9 passing application checks. Actual frozen icon/version inspection is still needed for the final artifact.
## Other reviewed behavior
- The application AppID is stable and excludes the release version: `DxProductivity.DxPartReplace`. GUI application name/version/icon setup occurs after QApplication construction and before top-level window creation.
- Native helper, private CAD action, Cell catalog worker, and SceneOS CLI branches still return before GUI construction and identity setup. The added top-level QIcon import does not itself construct a GUI application.
- The packaged EXE icon points directly to the source ICO. The data destination matches the package-data hierarchy. Wheel/source package-data patterns include ICO, PNG, and SVG.
- `VERSION`, project package version, and Windows ProductVersion are 1.1.3. Windows fixed versions and FileVersion consistently use 1.1.3.0. Product/Internal/OriginalFilename strings are consistent with DxPartReplace.exe.
- The editable SVG is a self-contained vector asset with no external references. The generator validates it, renders a transparent 512-pixel PNG, and creates a multi-size ICO. A read-only binary directory inspection confirms ten ICO sizes: 16, 20, 24, 32, 40, 48, 64, 96, 128, and 256 pixels. The icon assets exist and are nonempty. The coordinator supplied visual inspection; this reviewer did not rerender them.
- Comparing current source files to the final v1.1.2 candidate's 101-file source manifest identifies only `application.py` and `version.py` as changed existing product modules. No replacement, Cell authority, CAD mutation, recovery, or persistence module change was found in that comparison.
## Tests and build evidence
`build/release-113-bootstrap.xml` records 14 tests, 0 failures, 0 errors. The two fake-Qt startup tests isolate identity configuration without removing the original logging/startup/smoke-close assertions. The project-task UI version assertion now follows `VERSION`; its editing/gating/persistence checks remain intact. `release-113-icon-path-red.xml` records 1 failure and `release-113-icon-path-green.xml` records 9 passes, with no errors.
The initial full `release-113-build.log` records 699 passes and one failure in the fake-Qt startup recovery test. Its application log identifies `AttributeError: 'Application' object has no attribute 'setApplicationName'`, rather than a recovery assertion failure. The final reviewed recovery test now isolates identity configuration while preserving the paused/failed recovery states, before/after event phases, and diagnostic-log assertions. The replacement full build is recorded separately in `release-113-build-final.log` and was still progressing when inspected. No final build or frozen runtime success is claimed here. Existing preceding-candidate TOCs were not used as v1.1.3 resource evidence.
Retain the new versioned release identity and verify the newly built EXE's embedded icon/version plus its running window icon before publishing v1.1.3. Business behavior remains outside this icon-only change. The user has authorized packaging/publication; this review itself performs no publication and adds no confirmation requirement.
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB