change path/command option based on platform

This commit is contained in:
SpikeHD
2022-09-04 14:00:27 -07:00
parent 94c1bfd104
commit 404e946e7c
5 changed files with 40 additions and 7 deletions

View File

@@ -94,6 +94,7 @@ fn main() {
system_helpers::is_elevated,
system_helpers::set_migoto_target,
system_helpers::wipe_registry,
system_helpers::get_platform,
proxy::set_proxy_addr,
proxy::generate_ca_files,
unzip::unzip,

View File

@@ -168,3 +168,8 @@ pub fn is_elevated() -> bool {
pub fn is_elevated() -> bool {
sudo::check() == sudo::RunningAs::Root
}
#[tauri::command]
pub fn get_platform() -> &'static str {
std::env::consts::OS
}