From f6655e6708f444f4ff8df3f25e17db80f410667b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 4 Nov 2025 14:40:03 +0800 Subject: Add build script and update version display format --- Cargo.toml | 1 + build.rs | 2 -- locales/help_docs/en.yml | 14 ++++++-------- locales/help_docs/zh-CN.yml | 6 ++---- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 18f8686..464b311 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "just_enough_vcs_cli" edition = "2024" +build = "build.rs" [workspace] members = ["crates/build_helper"] diff --git a/build.rs b/build.rs index 7c9aac2..ac5acaa 100644 --- a/build.rs +++ b/build.rs @@ -5,8 +5,6 @@ const COMPILE_INFO_RS: &str = "./src/data/compile_info.rs"; const COMPILE_INFO_RS_TEMPLATE: &str = "./src/data/compile_info.rs.template"; fn main() { - println!("cargo:rerun-if-changed={}", COMPILE_INFO_RS_TEMPLATE); - let repo_root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); if let Err(e) = generate_compile_info(&repo_root) { diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index 62c1f56..b899cdf 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -5,14 +5,13 @@ common: jvv: version: header: | - JustEnoughVCS Upstream Vault Manager - VERSION - %{version} + JVCS Upstream Manager - %{version} compile_info: | Compile Info Compile Date - %{build_time} - Target - %{build_target} - Platform - %{build_platform} - %{build_toolchain} + Target - %{build_target} + Platform - %{build_platform} - %{build_toolchain} help: | **JustEnoughVCS Upstream Vault Commands** @@ -148,14 +147,13 @@ jvv: jv: version: header: | - JustEnoughVCS - VERSION - %{version} + JustEnoughVCS - %{version} compile_info: | Compile Info Compile Date - %{build_time} - Target - %{build_target} - Platform - %{build_platform} - %{build_toolchain} + Target - %{build_target} + Platform - %{build_platform} - %{build_toolchain} help: | **JustEnoughVCS** diff --git a/locales/help_docs/zh-CN.yml b/locales/help_docs/zh-CN.yml index ba89cb8..effad0b 100644 --- a/locales/help_docs/zh-CN.yml +++ b/locales/help_docs/zh-CN.yml @@ -5,8 +5,7 @@ common: jvv: version: header: | - JustEnoughVCS 上游库管理工具 - 当前版本:%{version} + JVCS 上游管理工具 - %{version} compile_info: | 编译信息: @@ -142,8 +141,7 @@ jvv: jv: version: header: | - JustEnoughVCS 本地工作区命令 - 当前版本:%{version} + JustEnoughVCS - %{version} compile_info: | 编译信息: -- cgit