This adds a configuration option in meson, if set it changes the application ID allowing for stable and development version to be run at the same time.
15 lines
453 B
Rust
15 lines
453 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
// Rerun the build script when files in the resources folder are changed.
|
|
println!("cargo:rerun-if-changed=resources");
|
|
println!("cargo:rerun-if-changed=resources/*");
|
|
|
|
let out = Command::new("glib-compile-resources")
|
|
.args(&["--generate", "resources.xml"])
|
|
.current_dir("resources")
|
|
.status()
|
|
.expect("failed to generate resources");
|
|
assert!(out.success());
|
|
}
|