Work out the full path from the PWD to the resources
This commit is contained in:
parent
1ba2822ab2
commit
226a4b7171
|
@ -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",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue