老板反馈:升级弹窗里的更新说明挤成一整段,看不出版本更新了哪几条。
两个原因,都修:
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,签名实验通过。
84 lines
1.9 KiB
JSON
84 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "XiaoyinMarkdown",
|
|
"version": "2.6.4",
|
|
"identifier": "com.xiaoyin.markdown",
|
|
"build": {
|
|
"frontendDist": "../src/renderer"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "未命名 — 小银 Markdown",
|
|
"width": 1380,
|
|
"height": 880,
|
|
"minWidth": 860,
|
|
"minHeight": 520,
|
|
"dragDropEnabled": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": [
|
|
"nsis"
|
|
],
|
|
"icon": [
|
|
"icons/icon.ico"
|
|
],
|
|
"fileAssociations": [
|
|
{
|
|
"ext": [
|
|
"md",
|
|
"markdown",
|
|
"mdown",
|
|
"mkd",
|
|
"mdwn"
|
|
],
|
|
"name": "XiaoyinMarkdown.Document",
|
|
"description": "Markdown 文档 — 小银 Markdown",
|
|
"role": "Editor"
|
|
},
|
|
{
|
|
"ext": [
|
|
"txt"
|
|
],
|
|
"name": "XiaoyinMarkdown.Text",
|
|
"description": "文本文档 — 小银 Markdown",
|
|
"role": "Editor"
|
|
}
|
|
],
|
|
"windows": {
|
|
"webviewInstallMode": {
|
|
"type": "downloadBootstrapper"
|
|
},
|
|
"nsis": {
|
|
"installMode": "currentUser",
|
|
"languages": [
|
|
"SimpChinese"
|
|
],
|
|
"displayLanguageSelector": false,
|
|
"installerIcon": "icons/icon.ico",
|
|
"uninstallerIcon": "icons/icon.ico",
|
|
"installerHooks": "installer-hooks.nsh"
|
|
}
|
|
},
|
|
"createUpdaterArtifacts": true
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"endpoints": [
|
|
"https://md.wangjinding.com/update/latest.json"
|
|
],
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEVFMjMxQjcwNzlFMDhCNTgKUldSWWkrQjVjQnNqN3Ewazg0U1VTN2VHSmE5amRROEIzN2UrK2w4dlJ5R05rcGhTY0FuNUk3NUwK",
|
|
"windows": {
|
|
"installMode": "passive"
|
|
}
|
|
}
|
|
}
|
|
} |