mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 00:47:00 +01:00
The sidebar header and the login page used the generic folder-remote-symbolic icon. Ship the app icon from packaging/ in the GUI resources and use it in both places, so the in-app brand matches the launcher even when the app runs uninstalled.
31 lines
922 B
Rust
31 lines
922 B
Rust
use std::env;
|
|
use std::process::Command;
|
|
|
|
fn main() {
|
|
let out_dir = env::var("OUT_DIR").unwrap();
|
|
let status = Command::new("glib-compile-resources")
|
|
.args([
|
|
"--target",
|
|
&format!("{}/pdfs.gresource", out_dir),
|
|
"--sourcedir",
|
|
"resources/icons",
|
|
"--sourcedir",
|
|
"resources",
|
|
"resources/pdfs.gresource.xml",
|
|
])
|
|
.status()
|
|
.expect("Failed to execute glib-compile-resources");
|
|
|
|
if !status.success() {
|
|
panic!(
|
|
"glib-compile-resources failed with exit code: {:?}",
|
|
status.code()
|
|
);
|
|
}
|
|
|
|
println!("cargo:rerun-if-changed=resources/pdfs.gresource.xml");
|
|
println!("cargo:rerun-if-changed=resources/icons");
|
|
println!("cargo:rerun-if-changed=resources/style.css");
|
|
println!("cargo:rerun-if-changed=../../packaging/io.narl.proton-drive-linux.svg");
|
|
}
|