fix: update launcher version retrieval and improve HWID fallback
This commit is contained in:
1 parent
eaffc35288
commit
02fecd237c
1 file changed
+5
-4
@@ -36,14 +36,15 @@ pub fn opened_urls(app: tauri::AppHandle) -> Vec<PathBuf> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn get_launcher_version() -> String {
|
pub fn get_launcher_version(app: tauri::AppHandle) -> String {
|
||||||
env!("CARGO_PKG_VERSION").to_string()
|
app.package_info().version.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn get_hwid() -> String {
|
pub fn get_hwid() -> String {
|
||||||
let hwid = get_id().unwrap();
|
get_id()
|
||||||
hwid.into()
|
.unwrap_or("recorderinsandybridge".to_string())
|
||||||
|
.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command(rename_all = "snake_case")]
|
#[tauri::command(rename_all = "snake_case")]
|
||||||
|
|||||||
Reference in new issue
Block a user