Files
firezone/rust/windows-client/src-tauri/build.rs
Reactor Scram 64f76f5edb feat(windows): Elevate with UAC automatically on startup (#2913)
Automatically write the wintun.dll file on startup and then detect
whether we need to elevate to admin privileges.

I check for privileges by making a test tunnel, so I did #2758 as part
of this, which bundles the DLL inside the exe, and then the exe deploys
it.

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2023-12-18 23:54:45 +00:00

7 lines
206 B
Rust
Executable File

fn main() -> anyhow::Result<()> {
let win = tauri_build::WindowsAttributes::new();
let attr = tauri_build::Attributes::new().windows_attributes(win);
tauri_build::try_build(attr)?;
Ok(())
}