From 921c7377265077ee76f72728cfc5ff2a04ff8e01 Mon Sep 17 00:00:00 2001 From: "949036910@qq.com" <> Date: Wed, 3 Jun 2026 15:27:19 +0800 Subject: [PATCH] 11 --- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/commands/nodejs.rs | 2 +- src-tauri/src/commands/pythonscript.rs | 2 +- src-tauri/src/main.rs | 10 +++++----- src-tauri/tauri.conf.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 67aedc4..d35e021 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -5112,7 +5112,7 @@ dependencies = [ [[package]] name = "tauri-app" -version = "0.1.11" +version = "0.1.13" dependencies = [ "aes-gcm", "async-trait", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 23187cc..76affd3 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-app" -version = "0.1.11" +version = "0.1.13" description = "A Tauri App" authors = ["you"] edition = "2021" diff --git a/src-tauri/src/commands/nodejs.rs b/src-tauri/src/commands/nodejs.rs index 9673011..21d372e 100644 --- a/src-tauri/src/commands/nodejs.rs +++ b/src-tauri/src/commands/nodejs.rs @@ -125,7 +125,7 @@ pub async fn run_nodejs_script( { let mut map = registry.inner.lock().await; if map.contains_key(&script_name) { - return Err(format!("脚本正在运行: {script_name}")); + return Err(format!("脚本正在运行")); } map.insert(script_name.clone(), cancel_tx); } diff --git a/src-tauri/src/commands/pythonscript.rs b/src-tauri/src/commands/pythonscript.rs index a2858b6..3e23f41 100644 --- a/src-tauri/src/commands/pythonscript.rs +++ b/src-tauri/src/commands/pythonscript.rs @@ -117,7 +117,7 @@ pub async fn run_python_script( { let mut map = registry.inner.lock().await; if map.contains_key(&script_name) { - return Err(format!("脚本正在运行: {script_name}")); + return Err(format!("脚本正在运行")); } map.insert(script_name.clone(), cancel_tx); } diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 39d12c6..1099a53 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -6,11 +6,11 @@ fn main() { #[cfg(all(windows, not(debug_assertions)))] { - if !tauri_app_lib::updater::launched_by_updater() { - if tauri_app_lib::updater::try_launch_updater().is_ok() { - std::process::exit(0); - } - } + // if !tauri_app_lib::updater::launched_by_updater() { + // if tauri_app_lib::updater::try_launch_updater().is_ok() { + // std::process::exit(0); + // } + // } } tauri_app_lib::run() diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2bab315..eac014f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "aiclient", - "version": "0.1.11", + "version": "0.1.13", "identifier": "com.aiclient.desktop", "build": { "beforeDevCommand": "npm run dev --prefix ../aiclient_ui",