mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-18 21:47:53 +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(_) => {}
|
|
}
|
|
}
|
|
}
|