use std::process::Command; fn main() { Command::new("glib-compile-resources") .current_dir("gresource") .arg("--target=../target/to.mdit.Lightpanel.gresource") .arg("to.mdit.Lightpanel.gresource.xml") .output() .expect("failed to build gresource"); }