11
This commit is contained in:
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -5112,7 +5112,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-app"
|
||||
version = "0.1.11"
|
||||
version = "0.1.13"
|
||||
dependencies = [
|
||||
"aes-gcm",
|
||||
"async-trait",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tauri-app"
|
||||
version = "0.1.11"
|
||||
version = "0.1.13"
|
||||
description = "A Tauri App"
|
||||
authors = ["you"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user