-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.rs
More file actions
25 lines (22 loc) · 941 Bytes
/
build.rs
File metadata and controls
25 lines (22 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fn main() {
// GPM support is now handled via dlopen at runtime
// No build-time linking required - works for both native and cross-compilation
println!("cargo:rerun-if-changed=build.rs");
// Embed icon and metadata into Windows executable
#[cfg(target_os = "windows")]
{
let mut res = winres::WindowsResource::new();
// Only set icon if assets folder exists (not present when installed via cargo install)
let icon_path = "assets/term39.ico";
if std::path::Path::new(icon_path).exists() {
res.set_icon(icon_path);
}
res.set("ProductName", "term39");
res.set(
"FileDescription",
"A modern, retro-styled terminal multiplexer with a classic MS-DOS aesthetic",
);
res.set("LegalCopyright", "Copyright (c) 2025 Alejandro Quintanar");
res.compile().expect("Failed to compile Windows resources");
}
}