This commit is contained in:
949036910@qq.com
2026-06-03 15:27:19 +08:00
parent 8fc9722fc7
commit 921c737726
6 changed files with 10 additions and 10 deletions

2
src-tauri/Cargo.lock generated
View File

@@ -5112,7 +5112,7 @@ dependencies = [
[[package]] [[package]]
name = "tauri-app" name = "tauri-app"
version = "0.1.11" version = "0.1.13"
dependencies = [ dependencies = [
"aes-gcm", "aes-gcm",
"async-trait", "async-trait",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "tauri-app" name = "tauri-app"
version = "0.1.11" version = "0.1.13"
description = "A Tauri App" description = "A Tauri App"
authors = ["you"] authors = ["you"]
edition = "2021" edition = "2021"

View File

@@ -125,7 +125,7 @@ pub async fn run_nodejs_script(
{ {
let mut map = registry.inner.lock().await; let mut map = registry.inner.lock().await;
if map.contains_key(&script_name) { if map.contains_key(&script_name) {
return Err(format!("脚本正在运行: {script_name}")); return Err(format!("脚本正在运行"));
} }
map.insert(script_name.clone(), cancel_tx); map.insert(script_name.clone(), cancel_tx);
} }

View File

@@ -117,7 +117,7 @@ pub async fn run_python_script(
{ {
let mut map = registry.inner.lock().await; let mut map = registry.inner.lock().await;
if map.contains_key(&script_name) { if map.contains_key(&script_name) {
return Err(format!("脚本正在运行: {script_name}")); return Err(format!("脚本正在运行"));
} }
map.insert(script_name.clone(), cancel_tx); map.insert(script_name.clone(), cancel_tx);
} }

View File

@@ -6,11 +6,11 @@
fn main() { fn main() {
#[cfg(all(windows, not(debug_assertions)))] #[cfg(all(windows, not(debug_assertions)))]
{ {
if !tauri_app_lib::updater::launched_by_updater() { // if !tauri_app_lib::updater::launched_by_updater() {
if tauri_app_lib::updater::try_launch_updater().is_ok() { // if tauri_app_lib::updater::try_launch_updater().is_ok() {
std::process::exit(0); // std::process::exit(0);
} // }
} // }
} }
tauri_app_lib::run() tauri_app_lib::run()

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "aiclient", "productName": "aiclient",
"version": "0.1.11", "version": "0.1.13",
"identifier": "com.aiclient.desktop", "identifier": "com.aiclient.desktop",
"build": { "build": {
"beforeDevCommand": "npm run dev --prefix ../aiclient_ui", "beforeDevCommand": "npm run dev --prefix ../aiclient_ui",