11
This commit is contained in:
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user