rust: app crate scaffolding, terminal colour schemes

This commit is contained in:
Andy Dixon
2026-10-11 16:18:15 +01:00
parent 25e5f67a4d
commit 4674c7cb3f
5 changed files with 2898 additions and 19 deletions
+14
View File
@@ -0,0 +1,14 @@
//! Embeds the icon and version info into the Windows executable.
fn main() {
println!("cargo:rerun-if-changed=../packaging/windows/nexus.ico");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
let mut res = winresource::WindowsResource::new();
if std::path::Path::new("../packaging/windows/nexus.ico").exists() {
res.set_icon("../packaging/windows/nexus.ico");
}
res.set("ProductName", "Nexus Terminal").set("FileDescription", "Nexus Terminal");
if let Err(e) = res.compile() {
println!("cargo:warning=Windows icon not embedded: {e}");
}
}
}