Files
xiaoyin-markdown/src-tauri/Cargo.toml
T
Jidekin 5236a44b79 fix(update): 更新说明按序号分行显示,发布时间改用本地时间(v2.6.4)
老板反馈:升级弹窗里的更新说明挤成一整段,看不出版本更新了哪几条。

两个原因,都修:
  1. 弹窗的说明区用的是 textContent,CSS 没有 white-space:pre-wrap
     → 说明文本里的 \n 全被压成空格。加上 pre-wrap,行高也放宽到 1.7
  2. 发布时的说明本来就是一段流水文字,没有编号 → 以后按「① ② ③」逐条写
     publish.py 新增 --notes-file,多行说明从文件读,省得命令行转义

顺带把发布时间格式化:原来是 time::OffsetDateTime 的默认 Display,
显示成 "2:43:08.0 +00:00:00"(带微秒和时区尾巴,还是 UTC)。
改成按 unix_timestamp 转 chrono 本地时间,格式 %Y-%m-%d %H:%M。

验证:用真实 tauri-bridge.js + 假 __TAURI__ 渲染了一遍弹窗(截图确认):
  发现新版本 v2.6.4
  发布时间:2026-11-20 10:53
  ① 更新入口在状态栏右下角,蓝色「检查更新」
  ② 弹窗里不再显示当前版本,按钮居中
  ③ 更新说明按序号换行,发布时间改为本地时间
  [立即升级] [稍后]   ← 居中

已构建发布 2.6.4:xymd_2.6.4.exe + .sig,签名实验通过。
2026-11-20 10:55:51 +08:00

35 lines
848 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "xiaoyin-markdown"
version = "2.6.4"
description = "小银 Markdown —— 轻量本地 Markdown 编辑器"
edition = "2021"
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-dialog = "2"
tauri-plugin-single-instance = "2"
# 在线升级:官方 updater(minisign 签名校验)+ process(升级后重启)
tauri-plugin-updater = "2"
tauri-plugin-process = "2"
serde = { version = "1", features = ["derive"] }
chrono = "0.4"
serde_json = "1"
clipboard-win = "5"
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_System_DataExchange",
"Win32_System_Memory",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging"
] }
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true
panic = "abort"