mirror of
https://git.neonteam.dev/amizing/hkrpg-patch.git
synced 2025-09-25 05:54:30 -04:00
feat(launcher): build executable to require administrator by default
Add rustc-link-arg directives in build.rs to embed a UAC manifest: - /MANIFEST:EMBED - /MANIFESTUAC:level='requireAdministrator'
This commit is contained in:
parent
7ab400507e
commit
aec2a1e575
4
launcher/build.rs
Normal file
4
launcher/build.rs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("cargo:rustc-link-arg-bin=launcher=/MANIFEST:EMBED");
|
||||||
|
println!("cargo:rustc-link-arg-bin=launcher=/MANIFESTUAC:level=\'requireAdministrator\'");
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user