Skip to content

Commit

Permalink
💚 lock in
Browse files Browse the repository at this point in the history
  • Loading branch information
thrzl committed Apr 14, 2024
1 parent 48754ff commit fb2067d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
12 changes: 1 addition & 11 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,7 @@ extern crate winres;

fn main() {
let mut res = winres::WindowsResource::new();
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.set_manifest_file("manifest.xml");
res.compile().unwrap();

embed_resource::compile("tray.rc", embed_resource::NONE);
Expand Down
9 changes: 9 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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>

0 comments on commit fb2067d

Please sign in to comment.