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:
amizing25
2025-08-22 06:39:39 +07:00
parent 7ab400507e
commit aec2a1e575

4
launcher/build.rs Normal file
View 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\'");
}