summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-07 14:54:48 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-07 14:54:48 +0800
commitbb6c64fe18dd3dc8fd683da127936917b17df0a6 (patch)
tree8719c670c51f84d84a7b64b6070684b171d2193d /build.rs
parentedf60b58e4e33607b3929cfd6c678b88b49abaab (diff)
Rename export directory to deploy and move templates
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs9
1 files changed, 6 insertions, 3 deletions
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<dyn std::error::Error>> {
- 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)?;