diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-04 14:40:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-04 14:40:03 +0800 |
| commit | f6655e6708f444f4ff8df3f25e17db80f410667b (patch) | |
| tree | 46b6bdf6bd2db02713b9c5e2c81a824140c3fa8a | |
| parent | 5991905ae9fb519a3a43c599c5515ba39c04e5fb (diff) | |
Add build script and update version display format
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | build.rs | 2 | ||||
| -rw-r--r-- | locales/help_docs/en.yml | 14 | ||||
| -rw-r--r-- | locales/help_docs/zh-CN.yml | 6 |
4 files changed, 9 insertions, 14 deletions
@@ -1,6 +1,7 @@ [package] name = "just_enough_vcs_cli" edition = "2024" +build = "build.rs" [workspace] members = ["crates/build_helper"] @@ -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: | 编译信息: |
