build: 发布 V1.0.7(修复应用图标缺陷)
- 图标生成脚本角度修正:圆环缺口从左侧改为正上方,与软件内 logo 一致 - 切割半径加深,消除缺口内残留的细青线 - 版本号 1.0.7+8;release/ 与 dist/ 同步新构建
@@ -127,7 +127,7 @@ flutter pub get
|
||||
flutter build apk --release # 产物:build\app\outputs\flutter-apk\app-release.apk
|
||||
```
|
||||
|
||||
- 发布包归档:`release\sequence_diagram_android_v1.0.6_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。
|
||||
- 发布包归档:`release\sequence_diagram_android_v1.0.7_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。
|
||||
- 上架应用商店时建议在 `android\app\build.gradle.kts` 配置正式签名后再构建 AAB:
|
||||
`flutter build appbundle --release`。
|
||||
- 应用名「时序图设计」、包名 `cc.sincos.sequence_diagram`、launcher 图标由
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
- **深色 / 浅色双主题**:右上角 ☀ / ☾ 一键切换,语义颜色不变,导出 SVG 与屏幕一致
|
||||
- **导出 SVG**:矢量、分层、带语义 `id` / `data-*` 元数据,可直接进工艺卡与 MES
|
||||
|
||||
## 正式版 V1.0.6
|
||||
## 正式版 V1.0.7
|
||||
|
||||
**可运行的 Flutter Windows 桌面正式版**(源码在 `lib/`),设计人:呆头鹅。
|
||||
|
||||
@@ -97,7 +97,7 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模
|
||||
- **正式签名**:release 用独立 keystore 签名(`android/key/release.jks`,见 `BUILD-NOTES.md`),更新安装无需卸载重装;
|
||||
- **构建**:JDK 17 + Android SDK 36(详见 `BUILD-NOTES.md`),Gradle 与 Maven 已配置国内镜像:
|
||||
```bash
|
||||
flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.6_release.apk
|
||||
flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.7_release.apk
|
||||
```
|
||||
- **自测**:`test/tablet_layout_test.dart` 覆盖 1280×800、2560×1600、960×600、800×480、竖屏 800×1280、600×960 等 7 种分辨率的无溢出回归;
|
||||
- **demo 图**:`demo/tablet-*.png`(由 `test/tablet_screenshots_test.dart` 生成)。
|
||||
@@ -113,6 +113,6 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模
|
||||
|
||||
- **软件**:时序图设计 · Sequence Diagram Studio
|
||||
- **设计人**:呆头鹅
|
||||
- **版本**:V1.0.6
|
||||
- **版本**:V1.0.7
|
||||
- **版权**:Copyright © 2026 呆头鹅。保留所有权利。
|
||||
- **架构文档**:[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) · **使用帮助**:[`docs/HELP.md`](docs/HELP.md)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 923 B After Width: | Height: | Size: 921 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
@@ -2124,7 +2124,7 @@ class HelpDialog extends StatelessWidget {
|
||||
Text('时序图设计 · Sequence Diagram Studio',
|
||||
style: TextStyle(color: t.text, fontSize: 15, fontWeight: FontWeight.w700)),
|
||||
const SizedBox(height: 4),
|
||||
Text('V1.0.6(${android ? '安卓版' : 'Windows 版'})',
|
||||
Text('V1.0.7(${android ? '安卓版' : 'Windows 版'})',
|
||||
style: TextStyle(color: t.dim, fontSize: 12)),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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.0.6+7
|
||||
version: 1.0.7+8
|
||||
|
||||
environment:
|
||||
sdk: ^3.13.3
|
||||
|
||||
@@ -49,10 +49,14 @@ def draw_ring(img, cx, cy, r_ring, ring_w, gap_deg, color, s):
|
||||
md = ImageDraw.Draw(mask)
|
||||
md.ellipse([cx - outer, cy - outer, cx + outer, cy + outer], fill=255)
|
||||
md.ellipse([cx - inner, cy - inner, cx + inner, cy + inner], fill=0)
|
||||
a0 = polar(cx, cy, outer + 8, -90 - gap_deg / 2)
|
||||
a1 = polar(cx, cy, outer + 8, -90 + gap_deg / 2)
|
||||
# Cut the gap wedge (centred on the top; polar() already offsets -90).
|
||||
# The wedge must reach well past the ring so its chord clears the band,
|
||||
# otherwise a thin sliver of ring is left spanning the gap.
|
||||
cut = outer * 1.35
|
||||
a0 = polar(cx, cy, cut, -gap_deg / 2)
|
||||
a1 = polar(cx, cy, cut, gap_deg / 2)
|
||||
md.polygon([(cx, cy), a0, a1], fill=0)
|
||||
for deg in (-90 + gap_deg / 2, -90 - gap_deg / 2):
|
||||
for deg in (-gap_deg / 2, gap_deg / 2):
|
||||
p = polar(cx, cy, r_ring, deg)
|
||||
md.ellipse([p[0] - ring_w / 2, p[1] - ring_w / 2,
|
||||
p[0] + ring_w / 2, p[1] + ring_w / 2], fill=255)
|
||||
@@ -76,7 +80,7 @@ def build(s):
|
||||
mask = Image.new("L", (s, s), 0)
|
||||
ImageDraw.Draw(mask).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), fill=255)
|
||||
img.paste(body, (0, 0), mask)
|
||||
ImageDraw.Draw(img).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), outline=EDGE, width=max(1, s // 200))
|
||||
ImageDraw.Draw(img).rounded_rectangle([0, 0, s - 1, s - 1], radius=int(0.27 * s), outline=EDGE, width=max(1, round(0.018 * s)))
|
||||
|
||||
cx = cy = s / 2.0
|
||||
r_ring = 0.293 * s
|
||||
|
||||
@@ -70,12 +70,15 @@ def draw_ring(img, r_ring, ring_w, gap_deg, color):
|
||||
md = ImageDraw.Draw(mask)
|
||||
md.ellipse([CX - outer, CY - outer, CX + outer, CY + outer], fill=255)
|
||||
md.ellipse([CX - inner, CY - inner, CX + inner, CY + inner], fill=0)
|
||||
# Cut the gap wedge (centred on the top, i.e. -90 deg).
|
||||
a0 = polar(CX, CY, outer + 8, -90 - gap_deg / 2)
|
||||
a1 = polar(CX, CY, outer + 8, -90 + gap_deg / 2)
|
||||
# Cut the gap wedge (centred on the top; polar() already offsets -90).
|
||||
# Reach well past the ring so the chord clears the band, otherwise a thin
|
||||
# sliver of ring is left spanning the gap.
|
||||
cut = outer * 1.35
|
||||
a0 = polar(CX, CY, cut, -gap_deg / 2)
|
||||
a1 = polar(CX, CY, cut, gap_deg / 2)
|
||||
md.polygon([(CX, CY), a0, a1], fill=0)
|
||||
# Round caps at both arc ends.
|
||||
for deg in (-90 + gap_deg / 2, -90 - gap_deg / 2):
|
||||
for deg in (-gap_deg / 2, gap_deg / 2):
|
||||
p = polar(CX, CY, r_ring, deg)
|
||||
md.ellipse([p[0] - ring_w / 2, p[1] - ring_w / 2,
|
||||
p[0] + ring_w / 2, p[1] + ring_w / 2], fill=255)
|
||||
@@ -104,7 +107,7 @@ def build_master(simplified=False):
|
||||
[INSET, INSET, S - 1 - INSET, S - 1 - INSET],
|
||||
radius=int(0.27 * TILE),
|
||||
outline=EDGE,
|
||||
width=5,
|
||||
width=max(1, round(0.018 * TILE)),
|
||||
)
|
||||
|
||||
# --- mark ---
|
||||
|
||||
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |