1 Commits

Author SHA1 Message Date
amizing25
aec2a1e575 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'
2025-08-22 06:39:39 +07:00

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\'");
}