merge Dev_260708 → main: v0.6.1~v0.6.3 发版合入主线

# Conflicts:
#	src-tauri/src/commands.rs
This commit is contained in:
KimiSwitch Dev committed 2026-07-31 10:57:27 +08:00
commit b9ea6426d8
17 files changed
+958 -100

No files matched your search

+1 -1
View File
@@ -1958,7 +1958,7 @@ dependencies = [
[[package]]
name = "kimiswitch"
version = "0.6.0"
version = "0.6.3"
dependencies = [
"anyhow",
"chrono",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "kimiswitch"
version = "0.6.0"
version = "0.6.3"
description = "Kimi Switch - model config manager"
authors = ["you"]
edition = "2021"
+11 -2
View File
@@ -866,8 +866,6 @@ pub fn open_installer(app: tauri::AppHandle, path: String) -> Result<(), String>
.open_path(&path, None::<&str>)
.map_err(|e| e.to_string())
}
/// Pick the GitHub release asset matching the given OS by file extension.
/// Preference for Linux is AppImage (portable, no install). If the preferred
/// extension is not present, returns None so the UI can fall back to
/// "open release page" instead of guessing a less-preferred format.
@@ -964,4 +962,15 @@ mod asset_picker_tests {
let url = pick_asset_for_os(&assets, "freebsd");
assert_eq!(url, None);
}
}
/// Open an external https/http URL in the system default browser.
/// Uses the Rust opener directly (bypassing the JS plugin scope) so it
/// works regardless of capability scope configuration.
#[tauri::command]
pub fn open_external_url(app: tauri::AppHandle, url: String) -> Result<(), String> {
use tauri_plugin_opener::OpenerExt;
app.opener()
.open_url(url, None::<&str>)
.map_err(|e| e.to_string())
}
+1
View File
@@ -104,6 +104,7 @@ pub fn run() {
commands::check_for_update,
commands::download_update,
commands::open_installer,
commands::open_external_url,
dashboard::get_paths,
dashboard::get_prices,
dashboard::get_summary,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"productName": "Kimi Switch",
"version": "0.6.0",
"version": "0.6.3",
"identifier": "com.kimiswitch.app",
"build": {
"beforeDevCommand": "npm run dev",