use std::process::Command; fn main() { println!("cargo:rerun-if-changed=resources/resources.xml"); println!("cargo:rerun-if-changed=resources/style.css"); println!("cargo:rerun-if-changed=resources/appmenu.xml"); let status = Command::new("glib-compile-resources") .arg("resources.xml") .current_dir("resources") .status() .expect("failed to run glib-compile-resources"); assert!(status.success(), "failed to compile application resources"); }