Skip to content

Commit 9275009

Browse files
committed
build: added cargo:rerun-if-env-changed for AW_WEBUI_DIR
1 parent 18a3496 commit 9275009

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aw-server/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@ fn main() -> Result<(), Box<dyn Error>> {
2020
);
2121
}
2222

23+
// Rebuild if the webui directory changes
24+
println!("cargo:rerun-if-env-changed=AW_WEBUI_DIR");
25+
if webui_var.is_ok() {
26+
println!("cargo:rerun-if-changed={}", webui_var.unwrap());
27+
}
28+
2329
Ok(())
2430
}

0 commit comments

Comments
 (0)