chore: add platform check

This commit is contained in:
2025-07-07 15:26:20 +02:00
parent 6d2d5de6d2
commit 3dc62a060e
4 changed files with 39 additions and 3 deletions

View File

@@ -634,3 +634,8 @@ pub fn open_url_in_browser(url: String) -> Result<(), String> {
pub fn exit(app: AppHandle) {
app.exit(0x0100);
}
#[tauri::command]
pub fn get_platform() -> String {
std::env::consts::OS.to_string()
}