feat: find-window, run, clipboard, label-routing, persistent session-id, exe icon
This commit is contained in:
parent
ef4ca0ccbb
commit
672676d3d7
9 changed files with 214 additions and 15 deletions
|
|
@ -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}"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue