v1.3.13: 模块化注册架构 + PDS流程设计套件更名 + 依赖/圆周交互修复

- 模块化:EdcModule 契约 + registry + 模块独立目录;发布包增加 modules/registry.json
- 更名:PDS流程设计套件 / ProcessDesignSuite;同步构建、发布脚本与文档
- 时序图:依赖偏移以时间显示/编辑;紧贴依赖隐藏箭头并在接缝显示标签;动作条磁吸
- 圆周:依赖标签沿圆弧方向、环间空隙;动作旋转磁吸增强;短弧标签优先动作名
- 清理:release 移至源码同级(本地不入库);tool 合并到 tools;发布说明迁移 docs/release-notes
This commit is contained in:
2026-11-22 10:02:48 +08:00
parent afc4dc6dd7
commit 0a3f2c5cc6
105 changed files with 6309 additions and 3577 deletions
+16 -10
View File
@@ -3,13 +3,14 @@
#
# 用法(在仓库根目录或任意位置):
# powershell -File scripts\publish_release.ps1 -Version 1.2.1 `
# -NotesFile release\notes\RELEASE_NOTES_v1.2.1.md
# -NotesFile docs\release-notes\RELEASE_NOTES_v1.2.1.md
#
# 说明:
# - 更新说明写入 Release 正文(Markdown),客户端「检查更新」时读取展示;
# - 安卓 APK:默认取 release\android\EasyDesignCollection_android_v<版本>_release.apk;
# - Windows 绿色版:默认把 release\windows\EasyDesignCollection\ 打包为 zip
# (客户端下载后原地解压覆盖;zip 内部必须平铺,脚本自动生成于 release\windows\);
# - 发布根目录:默认在源码仓库同级的 release\(可 -ReleaseRoot 覆盖);
# - 安卓 APK:默认取 <ReleaseRoot>\android\ProcessDesignSuite_android_v<版本>_release.apk;
# - Windows 绿色版:默认把 <ReleaseRoot>\windows\ProcessDesignSuite\ 打包为 zip
# (客户端下载后原地解压覆盖;zip 内部必须平铺);
# - 安装包作为 Release 附件保存,不进入 git 历史,仓库保持精简;
# - 发布幂等:v<版本> 已存在(如上次上传中断)时复用它并更新说明;
# - 发布完成后自动清理历史附件:只保留「最新 1 个版本」的安装包
@@ -20,9 +21,10 @@ param(
[Parameter(Mandatory = $true)][string]$NotesFile,
[string]$ApkPath = "",
[string]$WindowsZipPath = "",
[string]$ReleaseRoot = "",
[string]$Server = "http://124.220.63.9:30000",
[string]$Owner = "admin",
[string]$Repo = "EasyDesignCollection", # 2026-10 由 Sequence-Diagram 改名(旧名保留 301 重定向)
[string]$Repo = "EasyDesignCollection", # 服务器仓库名保持不变(客户端更新地址依赖它)
[string]$Auth = "liuyu65@126.com:ds3317210",
# 上传限速(curl --limit-rate):服务器带宽很小(5Mbps),
# 限速上传避免打满带宽把服务器压垮(默认 320KB/s ≈ 2.6Mbps)。
@@ -31,22 +33,26 @@ param(
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot # 仓库根目录(scripts 的上一级)
if ($ReleaseRoot -eq "") {
$ReleaseRoot = Join-Path (Split-Path -Parent $root) "release"
}
$ReleaseRoot = [System.IO.Path]::GetFullPath($ReleaseRoot)
# ---- 1) 定位安装包 ----
if ($ApkPath -eq "") {
$ApkPath = Join-Path $root "release\android\EasyDesignCollection_android_v${Version}_release.apk"
$ApkPath = Join-Path $ReleaseRoot "android\ProcessDesignSuite_android_v${Version}_release.apk"
}
if (!(Test-Path $ApkPath)) {
throw "找不到 APK:$ApkPath(先执行 flutter build apk --release 并归档到 release\)"
}
if ($WindowsZipPath -eq "") {
$WindowsZipPath = Join-Path $root "release\windows\EasyDesignCollection_windows_v${Version}.zip"
$WindowsZipPath = Join-Path $ReleaseRoot "windows\ProcessDesignSuite_windows_v${Version}.zip"
}
if (!(Test-Path $WindowsZipPath) -or (Get-Item $WindowsZipPath).Length -lt 1048576) {
$winDir = Join-Path $root "release\windows\EasyDesignCollection"
if (!(Test-Path (Join-Path $winDir "EasyDesignCollection.exe"))) {
throw "找不到 release\windows\EasyDesignCollection\EasyDesignCollection.exe(先执行 flutter build windows --release 并同步到该目录)"
$winDir = Join-Path $ReleaseRoot "windows\ProcessDesignSuite"
if (!(Test-Path (Join-Path $winDir "ProcessDesignSuite.exe"))) {
throw "找不到 $winDir\ProcessDesignSuite.exe(先执行 scripts\build.bat 或 flutter build windows --release)"
}
Write-Host "打包 Windows 绿色版:$WindowsZipPath"
if (Test-Path $WindowsZipPath) { Remove-Item $WindowsZipPath -Force }