add: refactored everything

This commit is contained in:
2026-08-26 21:33:44 -04:00
parent b2efd6917d
commit b471d6e22f
16 changed files with 1268 additions and 608 deletions
+10 -8
View File
@@ -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");
}