mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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>
7 lines
206 B
Rust
Executable File
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(())
|
|
}
|