From 2e16a556e277035225d02d9a62c2da699235de36 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 3 Jan 2026 21:05:18 +0800 Subject: Add Git branch and commit info to compile info - Include branch and commit hash in compile info display - Add build script functions to extract git metadata - Update export scripts to force rebuilds when needed - Extend share command with placeholder implementations --- src/data/compile_info.rs.template | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/data/compile_info.rs.template') diff --git a/src/data/compile_info.rs.template b/src/data/compile_info.rs.template index 7720d2b..b65055b 100644 --- a/src/data/compile_info.rs.template +++ b/src/data/compile_info.rs.template @@ -5,6 +5,8 @@ pub struct CompileInfo { pub toolchain: String, pub cli_version: String, + pub build_branch: String, + pub build_commit: String, } impl Default for CompileInfo { @@ -15,6 +17,8 @@ impl Default for CompileInfo { platform: "{platform}".to_string(), toolchain: "{toolchain}".to_string(), cli_version: "{version}".to_string(), + build_branch: "{branch}".to_string(), + build_commit: "{commit}".to_string(), } } } -- cgit