Work out the full path from the PWD to the resources

This commit is contained in:
Savanni D'Gerinel 2024-01-25 10:08:50 -05:00
parent 1ba2822ab2
commit 226a4b7171
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
fn main() { 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( glib_build_tools::compile_resources(
&["resources"], &["resources"],
"resources/gresources.xml", resources_path.as_ref(),
"com.luminescent-dreams.fitnesstrax.gresource", "com.luminescent-dreams.fitnesstrax.gresource",
); );
} }