老板看实际界面后提的三点:
1. 升级弹窗里「当前版本 v2.6.2」那行去掉
2. 弹窗按钮居中
3. 工具条右上角的更新图标不要了,改到右下角、蓝色文字链接「检查更新」
改动:
· index.html:删掉 <button id="btn-update">(工具条图标);
在 .statusbar 的 .st-right 末尾加 <a class="st-link" id="btn-update">检查更新</a>
· style.css:.st-link 用主题色 var(--accent)(浅色 #2f6feb / 深色 #4f8ef7),hover 下划线,
.busy 时降透明度并禁用点击
· tauri-bridge.js:
- 「已是最新版本」弹窗不再带 detail(去掉当前版本行)
- 「发现新版本」的说明里也不再写「当前 vX →」,只留发布时间 + 更新说明
- 模态框按钮行 justify-content: flex-end → center(Tauri 下所有模态统一)
- 状态栏是 <a>,没有 disabled,改用 updating 标志 + .busy 类
版本 2.6.2 → 2.6.3,已构建并发布:
· xymd_2.6.3.exe(2.21 MB)+ .sig
· latest.json 指向新包,签名按 minisign 规则实验通过
84 lines
1.9 KiB
JSON
84 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "XiaoyinMarkdown",
|
|
"version": "2.6.3",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
} |