mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-11-24 04:12:34 +08:00
22 lines
597 B
Rust
22 lines
597 B
Rust
fn main() {
|
|
tauri_build::build();
|
|
if cfg!(target_os = "windows") {
|
|
let mut res = winres::WindowsResource::new();
|
|
res.set_icon("icons\\icon.ico");
|
|
res.set_manifest(
|
|
r#"
|
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
|
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
|
<security>
|
|
<requestedPrivileges>
|
|
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
|
</requestedPrivileges>
|
|
</security>
|
|
</trustInfo>
|
|
</assembly>
|
|
"#,
|
|
);
|
|
res.compile().unwrap();
|
|
}
|
|
}
|