feat: find-window, run, clipboard, label-routing, persistent session-id, exe icon

This commit is contained in:
Helios Agent 2026-03-03 15:19:54 +01:00
parent ef4ca0ccbb
commit 672676d3d7
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
9 changed files with 214 additions and 15 deletions

View file

@ -8,4 +8,15 @@ fn main() {
let hash = hash.trim();
println!("cargo:rustc-env=GIT_COMMIT={}", if hash.is_empty() { "unknown" } else { hash });
println!("cargo:rerun-if-changed=.git/HEAD");
// Embed Windows icon when cross-compiling for Windows
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
let mut res = winres::WindowsResource::new();
res.set_icon("../../assets/logo.ico");
// Set cross-compile toolkit (mingw-w64)
res.set_toolkit_path("/usr");
res.set_windres_path("x86_64-w64-mingw32-windres");
res.set_ar_path("x86_64-w64-mingw32-ar");
res.compile().unwrap_or_else(|e| eprintln!("winres warning: {e}"));
}
}