add: refactored everything
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
// let _ = Command::new("sh")
|
||||
// .args(&["-c", "cd resources && gtk4-builder-tool simplify --3to4 snespatcher.ui --replace"])
|
||||
// .output()
|
||||
// .expect("failed to execute process");
|
||||
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 _ = Command::new("sh")
|
||||
.args(&["-c", "cd resources && glib-compile-resources resources.xml"])
|
||||
.output()
|
||||
.expect("failed to execute process");
|
||||
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user