1.3.5:更名 EDC|易得设计,空白启动首页 + 可扩展图元库识别,架构图大版本
- 品牌:更名 EDC|易得设计(exe/安卓/仓库 EasyDesignCollection;旧地址 301 兼容老客户端更新) - 首页:空白启动 + 六模块「新建文档」选择 + 最近打开;品牌菜单重做 - 架构图:手绘识别统一图形;Visio 式可扩展图元库(导入 / 存为图元 / 分类折叠 / 手绘匹配 / 多笔回溯组合);识别后图形尺寸编辑(宽高长径 + 画布标注 + 双击改值); IT 系统图元;mm 标尺(右轴数值 / 实线游标 / A0 默认画布);图层、F8 正交 / F10 极轴、 对齐均布;连线端点换绑重吸附;DXF / SVG / PNG 导出;缩小时画布溢出到侧栏的裁剪修复 - 时序图:分文件保存(*.seq.json / *.arch.json;旧 .edc.json 兼容) - 路径:运行时目录迁移 %APPDATA%/EDC;素材库 library/;安卓 Documents/EDC - 清理:参数化草图入口冻结;Windows Ink 原生桥移除;dist/ 退役 - 构建:exe + APK 双端同步(1.3.5+26);发布脚本切换 release/ 新目录结构
This commit is contained in:
+11
-10
@@ -3,12 +3,13 @@
|
||||
#
|
||||
# 用法(在仓库根目录或任意位置):
|
||||
# powershell -File scripts\publish_release.ps1 -Version 1.2.1 `
|
||||
# -NotesFile release\RELEASE_NOTES_v1.2.1.md
|
||||
# -NotesFile release\notes\RELEASE_NOTES_v1.2.1.md
|
||||
#
|
||||
# 说明:
|
||||
# - 更新说明写入 Release 正文(Markdown),客户端「检查更新」时读取展示;
|
||||
# - 安卓 APK:默认取 release\sequence_diagram_android_v<版本>_release.apk;
|
||||
# - Windows 绿色版:默认把 dist\ 打包为 zip 后上传(客户端下载后原地覆盖);
|
||||
# - 安卓 APK:默认取 release\android\EasyDesignCollection_android_v<版本>_release.apk;
|
||||
# - Windows 绿色版:默认把 release\windows\EasyDesignCollection\ 打包为 zip
|
||||
# (客户端下载后原地解压覆盖;zip 内部必须平铺,脚本自动生成于 release\windows\);
|
||||
# - 安装包作为 Release 附件保存,不进入 git 历史,仓库保持精简;
|
||||
# - 发布幂等:v<版本> 已存在(如上次上传中断)时复用它并更新说明;
|
||||
# - 发布完成后自动清理历史附件:只保留「最新 1 个版本」的安装包
|
||||
@@ -21,7 +22,7 @@ param(
|
||||
[string]$WindowsZipPath = "",
|
||||
[string]$Server = "http://124.220.63.9:30000",
|
||||
[string]$Owner = "admin",
|
||||
[string]$Repo = "Sequence-Diagram",
|
||||
[string]$Repo = "EasyDesignCollection", # 2026-10 由 Sequence-Diagram 改名(旧名保留 301 重定向)
|
||||
[string]$Auth = "liuyu65@126.com:ds3317210",
|
||||
# 上传限速(curl --limit-rate):服务器带宽很小(5Mbps),
|
||||
# 限速上传避免打满带宽把服务器压垮(默认 320KB/s ≈ 2.6Mbps)。
|
||||
@@ -33,23 +34,23 @@ $root = Split-Path -Parent $PSScriptRoot # 仓库根目录(scripts 的上一
|
||||
|
||||
# ---- 1) 定位安装包 ----
|
||||
if ($ApkPath -eq "") {
|
||||
$ApkPath = Join-Path $root "release\sequence_diagram_android_v${Version}_release.apk"
|
||||
$ApkPath = Join-Path $root "release\android\EasyDesignCollection_android_v${Version}_release.apk"
|
||||
}
|
||||
if (!(Test-Path $ApkPath)) {
|
||||
throw "找不到 APK:$ApkPath(先执行 flutter build apk --release 并归档到 release\)"
|
||||
}
|
||||
|
||||
if ($WindowsZipPath -eq "") {
|
||||
$WindowsZipPath = Join-Path $env:TEMP "sequence_diagram_windows_v${Version}.zip"
|
||||
$WindowsZipPath = Join-Path $root "release\windows\EasyDesignCollection_windows_v${Version}.zip"
|
||||
}
|
||||
if (!(Test-Path $WindowsZipPath) -or (Get-Item $WindowsZipPath).Length -lt 1048576) {
|
||||
$dist = Join-Path $root "dist"
|
||||
if (!(Test-Path (Join-Path $dist "sequence_diagram.exe"))) {
|
||||
throw "找不到 dist\sequence_diagram.exe(先执行 flutter build windows --release 并同步到 dist\)"
|
||||
$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 并同步到该目录)"
|
||||
}
|
||||
Write-Host "打包 Windows 绿色版:$WindowsZipPath"
|
||||
if (Test-Path $WindowsZipPath) { Remove-Item $WindowsZipPath -Force }
|
||||
& tar.exe -a -cf $WindowsZipPath -C $dist .
|
||||
& tar.exe -a -cf $WindowsZipPath -C $winDir .
|
||||
if ($LASTEXITCODE -ne 0) { throw "打包失败" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user