diff --git a/fitnesstrax/app/build.rs b/fitnesstrax/app/build.rs index 6943702..9cb1477 100644 --- a/fitnesstrax/app/build.rs +++ b/fitnesstrax/app/build.rs @@ -1,7 +1,12 @@ fn main() { + let resources_path = std::env::var_os("PWD").unwrap().clone(); + let resources_path = resources_path.to_string_lossy().to_owned(); + let resources_path = resources_path + "/resources/gresources.xml"; + eprintln!("resources: {}", resources_path); + glib_build_tools::compile_resources( &["resources"], - "resources/gresources.xml", + resources_path.as_ref(), "com.luminescent-dreams.fitnesstrax.gresource", ); }