chore: include git commit in app versions

This commit is contained in:
Kevin Yue committed 2026-05-11 00:29:37 +08:00
1 parent 1a9b6563b2
commit 1efb9a86e6
10 files changed
+279 -4

No files matched your search

+8 -1
View File
@@ -16,7 +16,14 @@ use tokio::sync::{mpsc, watch};
use crate::{vpn_task::VpnTask, ws_server::WsServer};
const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")");
const VERSION: &str = concat!(
env!("CARGO_PKG_VERSION"),
" (",
env!("GPSERVICE_GIT_COMMIT"),
" ",
compile_time::date_str!(),
")"
);
#[derive(Parser)]
#[command(version = VERSION)]