release: prepare v1.3.0 with approved application icon
Core regression / Python core, intervention UI and release configuration (push) Successful in 3m16s
Core regression / JavaScript syntax (push) Successful in 5s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 3m22s
Core regression / JavaScript syntax (pull_request) Successful in 5s

This commit is contained in:
阿白叔 committed 2026-11-10 10:35:02 +08:00
1 parent 4f8fbd7806
commit 9cb19902d9
11 files changed
+60 -49

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# v1.3.0 本地构建记录
2026-11-09 从 main `4f8fbd78062b04203c106efb2fad476a5d6dbc82` 准备独立发行工作区,仅带入批准的紫蓝双环图标、1.3.0 版本元数据及发行说明。2026-11-10 整理并提交发行准备源码。
版本同步到 Python 包、应用显示版本和 Windows PE 资源;正式版标记为 0。图标以 1024×1024 `app-master.png` 为源,导出运行时 PNG、文档图标及 16/20/24/32/40/48/64/96/128/256 像素 ICO。
## 验证结果
- 现有 Windows 发行脚本完整回归:1358 passed,1 条 COM 线程模式提示,无失败。
- 打包配置与版本检查:8 passed;随后显式指定官方 7-Zip 工具运行真实自解压场景,1 passed。
- 冻结主程序及自解压 EXE 的 Windows 版本资源均为 1.3.0 / 1.3.0.0,所有语言资源已更新;10 档图标像素与批准的 ICO 一致。
- 冻结监督进程、进程身份识别、自有后台资源释放和正常退出检查通过;从最终包解出的程序再次通过相同检查。
- 实际 UI 操作验证原生 Harness 三栏界面、SVG 动画、工具设置、自定义模型入口、未发送草稿和页面切换保留;未配置 Key,未发送模型请求,所有自有子进程正常退出。
- 实际运行最终自解压 EXE,66,805 个文件与逐文件清单的 SHA256 完全一致;ZIP 每个成员的 CRC 与 SHA256 通过。该机器实测解压约 306.5 秒。
- 交付副本复制后再次核对产物 SHA256,结果一致;安装包不包含用户数据目录。
## 产物
| 文件 | 字节数 | SHA256 |
| --- | ---: | --- |
| `DxPartReplace-1.3.0.exe` | 357640754 | `a179ae3b003d73e7aa9fb2ffc20b76c45cc571a072dc438200bdffd64aa0db1d` |
| `DxPartReplace-1.3.0.zip` | 504669931 | `0c3fa4599f7989da7c14d14c70cb04bbcdac2bee1cebb07d2f3325462484fb47` |
本地交付目录为 `outputs/releases/v1.3.0`,包含安装包、校验文件、逐文件清单、验收报告和界面截图。大型发行二进制不加入 Git 源码提交。
自解压包使用官方 7-Zip 解压器副本,先替换图标和版本资源,再附加压缩数据;原始安装的 7-Zip 未修改。完整 Node/Harness 与 Qt WebEngine 运行时保留。
## 范围
本地包未上传,未创建远端 Release 或 Git 标签,未做代码签名。没有执行真实模型请求、远端测试工单或真实用户 CAD 工程替换。官方 Harness 前端保留自身的预览版标记。源码提交仅补充发行说明,不改变已验收包中的应用代码或图标。
+13
View File
@@ -0,0 +1,13 @@
# v1.3.0
以 main `4f8fbd7` 为基础,统一最新紫蓝双环图标,版本信息更新为 1.3.0。发行候选包已完成本地构建与核验,源码发布准备通过 PR 提交;远端 Release 与 Git 标签尚未创建。
本版包含原生三栏 DSH 助手、自动异常介入与核验、任务创建及多文件 BOM 交接、逐项 Value 策略、按单器件隔离失败及安全恢复。AI 等待与后台查询不占普通任务执行通道;同一持续异常去重,执行前重新核对授权、任务轮次及现场。状态灯以纯圆点显示,悬浮可看状态与原因。配置检查超时最多补试一次,不重建已完成事件。
交付自解压 EXE、便携 ZIP、SHA256 与逐文件清单。两种包均包含完整 Node/Harness、Qt WebEngine 和应用资源,内容一致。
升级前退出旧程序并备份 `data`;先解压到新目录,再按需迁移数据。保留主程序和 `_internal` 的相对位置,不只替换单个 EXE,也不要让新旧程序同时使用同一数据目录。新安装需要自行配置 AI 模型及 Key;本机仍需 DxDesigner EE 7.9.5、许可证和中央库才能执行 CAD 操作。
发行验证以随包的本地验收报告为准。打包和界面启动检查不等于已对真实用户工程完成替换,也不证明远端模型网络连接可用。
本地构建结果与产物校验值见 [v1.3.0 构建记录](v1.3.0-build.md)。
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

+5 -5
View File
@@ -1,10 +1,10 @@
# UTF-8
VSVersionInfo(
ffi=FixedFileInfo(
filevers=(1, 2, 2, 0),
prodvers=(1, 2, 2, 0),
filevers=(1, 3, 0, 0),
prodvers=(1, 3, 0, 0),
mask=0x3f,
flags=0x2,
flags=0x0,
OS=0x40004,
fileType=0x1,
subtype=0x0,
@@ -15,11 +15,11 @@ VSVersionInfo(
StringTable('040904B0', [
StringStruct('CompanyName', 'DxProductivity'),
StringStruct('FileDescription', 'DxDesigner Part Replacement'),
StringStruct('FileVersion', '1.2.2.0'),
StringStruct('FileVersion', '1.3.0.0'),
StringStruct('InternalName', 'DxPartReplace'),
StringStruct('OriginalFilename', 'DxPartReplace.exe'),
StringStruct('ProductName', 'DxDesigner Part Replacement'),
StringStruct('ProductVersion', '1.2.2')
StringStruct('ProductVersion', '1.3.0')
])
]),
VarFileInfo([VarStruct('Translation', [1033, 1200])])
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "dx-productivity"
version = "1.2.2"
version = "1.3.0"
requires-python = ">=3.12,<3.13"
dependencies = ["PySide6>=6.7,<7", "pywin32>=306", "pywinauto>=0.6.9,<1", "openpyxl>=3.1,<4"]
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

@@ -1,18 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256">
<defs>
<linearGradient id="tile" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#164D91"/>
<stop offset="1" stop-color="#079D98"/>
</linearGradient>
</defs>
<rect x="16" y="16" width="224" height="224" rx="52" fill="url(#tile)"/>
<g fill="none" stroke="#FFFFFF" stroke-width="12" stroke-linecap="round" stroke-linejoin="round">
<path d="M62 97V82Q62 60 84 60H184M169 46L184 60L169 74"/>
<path d="M194 159V174Q194 196 172 196H72M87 182L72 196L87 210"/>
</g>
<g fill="none" stroke="#FFFFFF" stroke-width="9" stroke-linecap="round">
<rect x="88" y="96" width="80" height="64" rx="10"/>
<path d="M76 112H88M76 128H88M76 144H88M168 112H180M168 128H180M168 144H180"/>
</g>
<rect x="109" y="117" width="38" height="22" rx="5" fill="#9BF0DE"/>
</svg>

Before

Width:  |  Height:  |  Size: 883 B

@@ -1 +1 @@
VERSION = "1.2.2"
VERSION = "1.3.0"
+10 -24
View File
@@ -1,33 +1,19 @@
"""Render the editable SVG into the runtime PNG and Windows multi-size ICO."""
from io import BytesIO
"""Export the approved PNG master into application and documentation icons."""
from pathlib import Path
from PIL import Image
from PySide6.QtCore import QBuffer, QIODevice, Qt
from PySide6.QtGui import QImage, QPainter
from PySide6.QtSvg import QSvgRenderer
def main():
assets = Path(__file__).resolve().parents[1] / 'src/dx_productivity/trial_task_center/assets'
renderer = QSvgRenderer(str(assets / 'app.svg'))
if not renderer.isValid():
raise ValueError('Invalid application icon SVG')
canvas = QImage(512, 512, QImage.Format.Format_ARGB32)
canvas.fill(Qt.GlobalColor.transparent)
painter = QPainter(canvas)
try:
renderer.render(painter)
finally:
painter.end()
buffer = QBuffer()
buffer.open(QIODevice.OpenModeFlag.WriteOnly)
if not canvas.save(buffer, 'PNG'):
raise OSError('Cannot render application icon')
payload = bytes(buffer.data())
(assets / 'app.png').write_bytes(payload)
with Image.open(BytesIO(payload)) as image:
image.save(assets / 'app.ico', sizes=[(n, n) for n in (16, 20, 24, 32, 40, 48, 64, 96, 128, 256)])
root = Path(__file__).resolve().parents[1]
assets = root / 'src/dx_productivity/trial_task_center/assets'
with Image.open(assets / 'app-master.png') as source:
image = source.convert('RGBA')
if image.size != (1024, 1024):
raise ValueError('Application icon master must be 1024x1024')
image.save(assets / 'app.png')
image.save(assets / 'app.ico', sizes=[(n, n) for n in (16, 20, 24, 32, 40, 48, 64, 96, 128, 256)])
image.save(root / 'docs/user/media/app-icon.png')
print(assets / 'app.ico')