Skip to content

Commit

Permalink
build: added cargo:rerun-if-env-changed for AW_WEBUI_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed May 13, 2024
1 parent 18a3496 commit 9275009
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aw-server/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ fn main() -> Result<(), Box<dyn Error>> {
);
}

// Rebuild if the webui directory changes
println!("cargo:rerun-if-env-changed=AW_WEBUI_DIR");
if webui_var.is_ok() {
println!("cargo:rerun-if-changed={}", webui_var.unwrap());
}

Ok(())
}

0 comments on commit 9275009

Please sign in to comment.