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
@@ -11,7 +11,14 @@ use log::info;
use serde_json::json;
use tempfile::NamedTempFile;
const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")");
const VERSION: &str = concat!(
env!("CARGO_PKG_VERSION"),
" (",
env!("GPAUTH_GIT_COMMIT"),
" ",
compile_time::date_str!(),
")"
);
#[derive(Parser)]
#[command(