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

@@ -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
}