build: check glib-compile-resources command output

This commit is contained in:
Daniel García Moreno 2018-07-23 17:23:23 +02:00
parent 290ba20703
commit 0998413058

View file

@ -6,11 +6,12 @@ use std::io::Write;
fn main() {
// Compile Gresource
Command::new("glib-compile-resources")
let out = Command::new("glib-compile-resources")
.args(&["--generate", "resources.xml"])
.current_dir("res")
.status()
.unwrap();
.expect("failed to generate resources");
assert!(out.success());
// Generating build globals
let default_locales = "./fractal-gtk/po".to_string();