mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-24 12:24:07 +08:00
21 lines
607 B
Rust
21 lines
607 B
Rust
fn main() {
|
|
#[cfg(windows)]
|
|
{
|
|
use std::io::Write;
|
|
let mut res = winres::WindowsResource::new();
|
|
res.set_icon("../../res/icon.ico")
|
|
.set_language(winapi::um::winnt::MAKELANGID(
|
|
winapi::um::winnt::LANG_ENGLISH,
|
|
winapi::um::winnt::SUBLANG_ENGLISH_US,
|
|
))
|
|
.set_manifest_file("../../res/manifest.xml");
|
|
match res.compile() {
|
|
Err(e) => {
|
|
write!(std::io::stderr(), "{}", e).unwrap();
|
|
std::process::exit(1);
|
|
}
|
|
Ok(_) => {}
|
|
}
|
|
}
|
|
}
|