Skip to content

Commit ba01978

Browse files
author
mikachu2333
committed
update some
1 parent 45fa6a5 commit ba01978

4 files changed

Lines changed: 11 additions & 176 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ directories = "6.0.0"
1414
single-instance = "0.3.3"
1515
windows-hotkeys = "0.2.1"
1616
toml = "0.9.7"
17-
chrono = "0.4.42"
1817
tray-icon = "0.21.0"
1918
tao = "0.34.3"
2019
mslnk = "0.1.8"

src/tray.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
88
use tray_icon::{Icon, TrayIconBuilder, TrayIconEvent};
99

10-
use crate::types::RES_VERSION;
11-
12-
/// 编译时获取的包版本号
13-
const PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
10+
use crate::types::{PKG_VERSION, RES_VERSION};
1411

1512
/// 系统托盘管理器
1613
///

src/types.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ use windows_hotkeys::keys::{ModKey, VKey};
33

44
/// 嵌入式 ScreenCapture 程序的 SHA1 哈希值
55
/// 用于验证嵌入的可执行文件完整性
6-
pub const RES_HASH: &str = "9D0655C41D1C05475C458A5091D6DE01034B0C5B";
6+
pub static RES_HASH: &str = "9D0655C41D1C05475C458A5091D6DE01034B0C5B";
77

88
/// 嵌入式 ScreenCapture 程序的版本号
99
/// 用于版本检查和更新判断
10-
pub const RES_VERSION: &str = "2.3.3";
10+
pub static RES_VERSION: &str = "2.3.3";
11+
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
1112

1213
/// 文件存在状态结构体
1314
/// 用于跟踪主程序所需的关键文件状态和版本信息

0 commit comments

Comments
 (0)