From bb6c64fe18dd3dc8fd683da127936917b17df0a6 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 7 Jan 2026 14:54:48 +0800 Subject: Rename export directory to deploy and move templates --- build.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 45f04af..c8b492c 100644 --- a/build.rs +++ b/build.rs @@ -3,7 +3,10 @@ use std::path::PathBuf; use std::process::Command; const COMPILE_INFO_RS: &str = "./src/data/compile_info.rs"; -const COMPILE_INFO_RS_TEMPLATE: &str = "./src/data/compile_info.rs.template"; +const COMPILE_INFO_RS_TEMPLATE: &str = "./templates/compile_info.rs"; + +const SETUP_JV_CLI_ISS: &str = "./setup/windows/setup_jv_cli.iss"; +const SETUP_JV_CLI_ISS_TEMPLATE: &str = "./templates/setup_jv_cli.iss"; fn main() { println!("cargo:rerun-if-env-changed=FORCE_BUILD"); @@ -26,8 +29,8 @@ fn main() { /// Generate Inno Setup installer script (Windows only) fn generate_installer_script(repo_root: &PathBuf) -> Result<(), Box> { - let template_path = repo_root.join("setup/windows/setup_jv_cli_template.iss"); - let output_path = repo_root.join("setup/windows/setup_jv_cli.iss"); + let template_path = repo_root.join(SETUP_JV_CLI_ISS_TEMPLATE); + let output_path = repo_root.join(SETUP_JV_CLI_ISS); let template = std::fs::read_to_string(&template_path)?; -- cgit