diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f1bc253..9438cde 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -27,13 +27,15 @@ android { defaultConfig { // 应用身份(applicationId): - // 由 `cc.sincos.sequence_diagram` 切换为 `cc.sincos.edc`(v1.3.10 起)。 - // 原因:部分安卓桌面会长期保留旧包身份(cc.sincos.sequence_diagram)的 - // 图标名缓存,导致应用更名后桌面仍显示旧名「时序图设计」。换新身份安装 = - // 系统当作全新应用处理,桌面必然按新包内的名称(EDC|易得)生成新图标。 + // v1.3.10:sequence_diagram → cc.sincos.edc(首轮换身份); + // v1.3.12:cc.sincos.edc → cc.sincos.yide(名称定为「EDC易得」后 + // 再次换新身份,彻底刷新桌面名称)。 + // 原因:部分安卓桌面会长期保留旧包身份的图标名(不随应用内更新刷新), + // 换新身份安装 = 系统当作全新应用处理,桌面必然按新包内的名称生成图标。 + // 本次之后名称固定,不再变动。 // 注意:namespace 与 Kotlin 包名保持不变(仅 applicationId 变化),因此 // AndroidManifest 中组件类名需写全限定名(见 android:name)。 - applicationId = "cc.sincos.edc" + applicationId = "cc.sincos.yide" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4c00506..e36ae83 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ 状态:P0 已实施(空白启动首页 + 模块注册表 + 文件路由 + 测试适配,全量 106 项通过); > P1 部分完成(release/ 目录已按方案 B 重组并验证,运行时路径迁移与素材库目录待做)。 @@ -31,7 +31,7 @@ - `AppMode` 增加 `home`:**启动即进入首页**(无文档、无画布、无侧栏)。 - 首页内容(COMSOL Home 风格,单页即可): - 1. 顶部:品牌 EDC|易得 + 版本号; + 1. 顶部:品牌 EDC易得 + 版本号; 2. 中央「新建文档」网格:6 个模块卡片(图标 + 名称 + 一句话); 未开放的模块灰显标注「未开放」(符合既定规则,无"规划中"字样); 3. 「打开文档…」按钮(按类型路由到对应模块的打开流程); diff --git a/docs/HELP.md b/docs/HELP.md index b00aab6..5de6e2f 100644 --- a/docs/HELP.md +++ b/docs/HELP.md @@ -1,6 +1,6 @@ -# EDC|易得 · 帮助手册(1.3.5) +# EDC易得 · 帮助手册(1.3.5) -> 本手册对应 1.3.5 大版本(软件已更名 EDC|易得,仓库 EasyDesignCollection)。 +> 本手册对应 1.3.5 大版本(软件已更名 EDC易得,仓库 EasyDesignCollection)。 > 本次更新变化较大,**新功能可能仍存在较多 bug 与问题**,欢迎反馈: > 开发者邮箱 liuyu65@126.com · 微信 online-goose。 @@ -175,9 +175,10 @@ 按产品约定连线**一律正交**(横平竖直);需要斜段请用「手绘」画直线图形。 **Q:升级后桌面出现两个图标 / 名称还是旧的?** -1.3.10 起应用换了新身份(`cc.sincos.edc`),系统会当作**全新应用**安装: -桌面新图标即 `EDC|易得`;旧图标(时序图设计)长按卸载即可。 +1.3.12 起应用换了新身份(`cc.sincos.yide`),系统会当作**全新应用**安装: +桌面新图标即 `EDC易得`;旧图标(时序图设计 / EDC|易得设计)长按全部卸载即可。 项目文件保存在公共文档目录(`Documents/SequenceDiagram`),不受影响。 -**Q:1.3.10 之后怎么更新?** -仍从首页 / 工具栏「检查更新」下载安装,此后都在新身份上**原地覆盖更新**。 +**Q:1.3.12 之后怎么更新?** +仍从首页 / 工具栏「检查更新」下载安装,此后都在新身份上**原地覆盖更新** +(名称已固定为 EDC易得,不会再需要换身份重装)。 diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 5d6fd4f..bc57e36 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -39,9 +39,9 @@ ## 三、v1.3.5 更名与架构图(开发中) -- **软件更名**:`Easy Design Collection`(缩写 **EDC**),中文名 **EDC|易得** +- **软件更名**:`Easy Design Collection`(缩写 **EDC**),中文名 **EDC易得** (窗口标题、Logo 菜单、关于页已替换;安装包命名与 README 随发布更新)。 -- **合集菜单**:左上角「EDC|易得」下拉**一次列全所有模块**(时序图 / 架构图已可用, +- **合集菜单**:左上角「EDC易得」下拉**一次列全所有模块**(时序图 / 架构图已可用, 其余以「规划中」列出、按序点亮);后续模块只需在菜单中逐个开放,不再调整导航结构。 菜单在 logo 下方展开、不遮挡 logo,内容超高时内部滚动。 - **架构图设计(本轮已交付)**: diff --git a/lib/arch/arch_export.dart b/lib/arch/arch_export.dart index ffcc849..cf5b1c0 100644 --- a/lib/arch/arch_export.dart +++ b/lib/arch/arch_export.dart @@ -40,7 +40,7 @@ Future renderArchPng({ // 标题与副标题(固定左上角)。 _text(canvas, '架构图设计', const Offset(48, 36), color: et.text, size: 34, weight: FontWeight.w700); - _text(canvas, 'EDC|易得 · Easy Design Collection · 手绘识别架构图', const Offset(48, 88), + _text(canvas, 'EDC易得 · Easy Design Collection · 手绘识别架构图', const Offset(48, 88), color: et.sub, size: 16, weight: FontWeight.w400); // 内容适配(白底令牌 + 关闭网格点阵)。 @@ -56,7 +56,7 @@ Future renderArchPng({ _text( canvas, - 'EDC|易得 · 架构图设计 · $projectName · 元件 ${doc.shapes.length} · 连线 ' + 'EDC易得 · 架构图设计 · $projectName · 元件 ${doc.shapes.length} · 连线 ' '${doc.connectors.length} · 墨迹 ${doc.strokes.length}', Offset(48, h - 38), color: et.sub, diff --git a/lib/main.dart b/lib/main.dart index 9a20f67..7eaa6c7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -94,7 +94,7 @@ class _SequenceDiagramAppState extends State { // 标题走模块注册表(首页显示品牌名,不带文件名)。 if (_controller.appMode == AppMode.home) { _windowChannel - .invokeMethod('setTitle', 'EDC|易得') + .invokeMethod('setTitle', 'EDC易得') .catchError((Object _) {}); return; } @@ -177,7 +177,7 @@ class _SequenceDiagramAppState extends State { builder: (BuildContext context, Widget? child) { final Tokens tokens = Tokens.of(_controller.brightness); return MaterialApp( - title: 'EDC|易得 · Easy Design Collection', + title: 'EDC易得 · Easy Design Collection', debugShowCheckedModeBanner: false, theme: buildTheme(tokens), // 固定文本缩放;系统栏图标随主题亮度自动切换(透明系统栏, diff --git a/lib/modules/module_registry.dart b/lib/modules/module_registry.dart index 8c1859b..53c9454 100644 --- a/lib/modules/module_registry.dart +++ b/lib/modules/module_registry.dart @@ -145,5 +145,5 @@ EdcModule? moduleOf(AppMode m) { /// AppMode → 窗口标题用模块名(首页用品牌名)。 String appModeLabel(AppMode m) { final EdcModule? mod = moduleOf(m); - return mod == null ? 'EDC|易得' : 'EDC|易得 · ${mod.name}设计'; + return mod == null ? 'EDC易得' : 'EDC易得 · ${mod.name}设计'; } diff --git a/lib/ui/brand_menu.dart b/lib/ui/brand_menu.dart index 7f26dcb..46dc00b 100644 --- a/lib/ui/brand_menu.dart +++ b/lib/ui/brand_menu.dart @@ -1,4 +1,4 @@ -/// 左上角品牌按钮 +「EDC|易得」设计合集菜单。 +/// 左上角品牌按钮 +「EDC易得」设计合集菜单。 /// /// 点开左上角 logo:菜单从 logo **下方**下拉展开(不遮挡 logo)。 /// 菜单由模块注册表驱动:首页入口 + 已开放模块(可进入/新建)+ @@ -56,7 +56,7 @@ class BrandMenuButton extends StatelessWidget { final Tokens t = context.tok; final BorderRadius radius = BorderRadius.circular(10); return Tooltip( - message: 'EDC|易得:设计合集', + message: 'EDC易得:设计合集', child: Material( color: t.panel, borderRadius: radius, @@ -238,7 +238,7 @@ class BrandMenuButton extends StatelessWidget { padding: const EdgeInsets.fromLTRB(12, 6, 12, 8), child: Row( children: [ - Text('EDC|易得', + Text('EDC易得', style: TextStyle( color: t.text, fontSize: 12.5, diff --git a/lib/ui/dialogs.dart b/lib/ui/dialogs.dart index 3de3be0..d8da54a 100644 --- a/lib/ui/dialogs.dart +++ b/lib/ui/dialogs.dart @@ -2049,7 +2049,7 @@ class _StationRowState extends State<_StationRow> { /// 双视图说明以及单位与导出等信息。 /// 软件设置:集中设置入口(外观 / 文档默认 / 架构图网格 / 更新)。 /// -/// 从左上角「EDC|易得」菜单底部的「软件设置」打开;文档级的完整设置 +/// 从左上角「EDC易得」菜单底部的「软件设置」打开;文档级的完整设置 /// (单位 / 循环 / 相位等)仍在「文档设置」(F2 / 左侧栏)里。 class SoftwareSettingsDialog extends StatefulWidget { /// 构造软件设置对话框。 @@ -2743,7 +2743,7 @@ class _HelpDialogState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('EDC|易得 · Easy Design Collection', + Text('EDC易得 · Easy Design Collection', style: TextStyle(color: t.text, fontSize: 15, fontWeight: FontWeight.w700)), const SizedBox(height: 4), Text('V$kAppVersion(${android ? '安卓版' : 'Windows 版'})', diff --git a/lib/ui/home_view.dart b/lib/ui/home_view.dart index 542b952..80deb1e 100644 --- a/lib/ui/home_view.dart +++ b/lib/ui/home_view.dart @@ -195,7 +195,7 @@ class _HomeViewState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'EDC|易得', + 'EDC易得', style: TextStyle( color: t.text, fontSize: 24, diff --git a/lib/version.dart b/lib/version.dart index 40d2f8c..8e95e22 100644 --- a/lib/version.dart +++ b/lib/version.dart @@ -2,7 +2,7 @@ /// /// 应用内更新检查用它判断服务器发布的版本是否更新; /// **每次发版必须与 pubspec 同步更新**(见 BUILD-NOTES 的发布流程)。 -const String kAppVersion = '1.3.11'; +const String kAppVersion = '1.3.12'; /// 是否要求授权(License)才能导出。 /// diff --git a/pubspec.yaml b/pubspec.yaml index 3d2e46e..60cba66 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sequence_diagram -description: "EDC|易得 · Easy Design Collection:面向 PLC 流程节拍 / 相位角、系统架构与电气设计的桌面软件。" +description: "EDC易得 · Easy Design Collection:面向 PLC 流程节拍 / 相位角、系统架构与电气设计的桌面软件。" # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.3.11+33 +version: 1.3.12+34 environment: sdk: ^3.13.3 diff --git a/release/notes/RELEASE_NOTES_v1.3.12.md b/release/notes/RELEASE_NOTES_v1.3.12.md new file mode 100644 index 0000000..89b7a70 --- /dev/null +++ b/release/notes/RELEASE_NOTES_v1.3.12.md @@ -0,0 +1,42 @@ +# V1.3.12 更新内容 + +> ⚠️ 本次为**桌面名称彻底修复版**(应用身份再次切换 + 名称定为「EDC易得」)。 +> 装完后桌面会多出一个全新图标,请按第 1 节操作。其余功能与 1.3.11 一致。 + +## 1. 桌面名称「EDC易得」——彻底修复(本次核心) + +老问题(桌面名称不随更新刷新)用**已验证过的方法**一次性解决: + +- 应用身份更换为全新的 **`cc.sincos.yide`**(上一个身份 `cc.sincos.edc` 作废); +- 名称统一为 **EDC易得**(桌面图标名、Windows 窗口标题 / 文件属性、应用内 + 品牌、导出图签,全部一致,不再带「设计」也不带竖线); +- 安装本版时,系统会把它当作**全新应用**安装 → 桌面必然生成名为 + **EDC易得** 的全新图标(全新条目,任何旧名称都不会沿用到它身上); +- 装好后请**长按旧图标并卸载**(此前可能有「时序图设计」「EDC|易得设计」 + 等旧图标,可能不止一个,全部卸载): + - 注意不要误删新图标:新图标名字就是 **EDC易得**; +- 你的项目文件保存在公共目录 `Documents/SequenceDiagram`,**不受影响**; + 仅应用内设置(如「最近打开」列表)会重置一次; +- **本次之后名称固定为 EDC易得,不再变动**——以后更新都在新身份上原地 + 覆盖,「桌面名称不刷新」的问题不会再出现。 + +## 2. 更新方式 + +- 应用内:打开现在的应用 → 首页 / 工具栏「检查更新」→ 立即更新 + (下载期间屏幕自动保持常亮,点灰色区域不会退出); +- 手动:Release 页下载 + `EasyDesignCollection_android_v1.3.12_release.apk` 或 + `EasyDesignCollection_windows_v1.3.12.zip`。 + +## 3. 本版包含(若你此前未更新到 1.3.11) + +- 更新下载时**屏幕自动常亮**;下载中点击灰区 / 返回键都不会退出更新界面; +- 架构图连线:箭头沿图元边**法向**垂直出入(不再乱指);同一图元多条连线 + **自动错开**;平板 / 手指拖动优化(端点 / 折点 / 线段拖动,命中范围加大, + 实时预览);拖动时**磁力吸附 + 虚线对齐导引**;鼠标悬停显示抓取光标。 + +## 4. 复验点 + +1. 装完后桌面出现全新图标 **EDC易得**(旧图标卸载后,桌面上只剩它一个); +2. 打开应用 → 关于页应显示 **v1.3.12**; +3. 应用内「检查更新」应提示:当前已是最新版本(v1.3.12)。 diff --git a/test/help_dialog_test.dart b/test/help_dialog_test.dart index 94228a3..94263dc 100644 --- a/test/help_dialog_test.dart +++ b/test/help_dialog_test.dart @@ -23,6 +23,6 @@ void main() { // 切到「关于」分页:不应抛异常,且关于页内容在树中。 await tester.tap(find.text('关于')); await tester.pumpAndSettle(); - expect(find.textContaining('EDC|易得'), findsWidgets); + expect(find.textContaining('EDC易得'), findsWidgets); }); } diff --git a/test/home_test.dart b/test/home_test.dart index c30f401..d0d8e22 100644 --- a/test/home_test.dart +++ b/test/home_test.dart @@ -26,7 +26,7 @@ void main() { expect(moduleOf(AppMode.home), isNull); expect(moduleOf(AppMode.sequence)!.name, '时序图'); expect(moduleOf(AppMode.architecture)!.suffix, '.arch.json'); - expect(appModeLabel(AppMode.home), 'EDC|易得'); + expect(appModeLabel(AppMode.home), 'EDC易得'); expect(appModeLabel(AppMode.sequence), contains('时序图')); }); }); diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc index 02bd10b..bc01904 100644 --- a/windows/runner/Runner.rc +++ b/windows/runner/Runner.rc @@ -1,4 +1,4 @@ -// Microsoft Visual C++ generated resource script. +// Microsoft Visual C++ generated resource script. // #pragma code_page(65001) #include "resource.h" @@ -90,7 +90,7 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "呆头鹅" "\0" - VALUE "FileDescription", "EDC|易得 Easy Design Collection" "\0" + VALUE "FileDescription", "EDC易得 Easy Design Collection" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" VALUE "InternalName", "EasyDesignCollection" "\0" VALUE "LegalCopyright", "Copyright (C) 2026 呆头鹅. All rights reserved." "\0" diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 41a66ca..c1938b5 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -38,7 +38,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, Win32Window::Size size( static_cast(screen_width / scale * 0.94), static_cast(screen_height / scale * 0.94)); - if (!window.Create(L"EDC|\u6613\u5F97", origin, size)) { + if (!window.Create(L"EDC\u6613\u5F97", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true);