2023-02-12 00:48:38 +08:00
|
|
|
fn main() {
|
2023-02-16 13:39:08 +08:00
|
|
|
tauri_build::build();
|
2023-02-12 00:48:38 +08:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|