From 97737dde56730bb4f8008e265c0e5960ce577750 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 27 Jun 2021 16:42:21 -0400 Subject: [PATCH] wanna automate builds --- build.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..50485ac --- /dev/null +++ b/build.rs @@ -0,0 +1,13 @@ +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"); + + let _ = Command::new("sh") + .args(&["-c", "cd resources && glib-compile-resources resources.xml"]) + .output() + .expect("failed to execute process"); +}