Files
xiaoyin-markdown/src-tauri/Cargo.toml
T
Jidekin 580e875be5 feat(ui): 状态栏「检查更新」左边显示当前版本号(v2.6.5)
老板要求:检查更新左侧加入当前版本的版本号。

  · index.html:在 UTF-8 和「检查更新」之间加 <span id="st-ver">,
    静态值只是兜底(无 JS / Electron 版时的显示)
  · main.rs:新增 app_version 命令,直接读 AppHandle 的 package_info,
    不联网、不读配置文件 —— 保证显示的版本和程序本体一致
  · tauri-bridge.js:启动时 invoke('app_version') 覆盖静态值

状态栏现在是:
  0 字 | 0 字符 | 第 1 行, 第 1 列 | UTF-8 | v2.6.5 | 检查更新

官网截图同步重出(旧图的状态栏没有版本号),四张合计 548KB。

已构建发布 2.6.5:xymd_2.6.5.exe + .sig,签名实验通过。
2026-11-20 11:04:16 +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.5"
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"