From 226a4b71711989d42c7de95dc966bf5fa9130edb Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Thu, 25 Jan 2024 10:08:50 -0500 Subject: [PATCH] Work out the full path from the PWD to the resources --- fitnesstrax/app/build.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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", ); }