fix: Recheck date whenever code is modified

This commit is contained in:
Liam 2024-09-03 16:02:24 -07:00
parent 6b96adc92d
commit dc8d363325
No known key found for this signature in database

View File

@ -1,6 +1,9 @@
fn main() { fn main() {
// Rebuild program if any file in commands directory changes. // Rebuild program if any file in commands directory changes.
println!("cargo:rerun-if-changed=src/commands"); println!("cargo:rerun-if-changed=src/commands");
// Rerun build script if any code is modified
println!("cargo:rerun-if-changed=src");
// Add current date as a variable to be displayed in the 'Linux Toolbox' text. // Add current date as a variable to be displayed in the 'Linux Toolbox' text.
println!( println!(
"cargo:rustc-env=BUILD_DATE={}", "cargo:rustc-env=BUILD_DATE={}",