diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 926a96812fcc51fc4df1f04964c8a6ed39ede00a..9090bd1e4d6b8040dfc3154b752ee05786418efd 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -238,10 +238,11 @@ dependencies = [ [[package]] name = "auto-launch" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f0ab475f9b1049a9d4e9c83f45ff27ec3bce4a6cb8e58e7f29030f8992af8c5" +checksum = "642d13324da4df30a472026356a7fd24845d4a8038e5c47ed99c62074b526fa5" dependencies = [ + "anyhow", "dirs 4.0.0", "winreg", ] diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index e738024ee26cce839ac9a0625dabd2789727c03b..bdf0d7ec776631926dab8b09f3b1728db2333a08 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -25,7 +25,7 @@ nanoid = "0.4.0" chrono = "0.4.19" serde_json = "1.0" serde_yaml = "0.8" -auto-launch = "0.2" +auto-launch = "0.3" port_scanner = "0.1.5" delay_timer = "0.11.1" parking_lot = "0.12.0" diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index b8729565c19de92eeb1bc9b9c540166d050d0b8b..f52de555e2a47137c3c7a019e3df479663cbb160 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -123,7 +123,7 @@ impl Sysopt { let auto = AutoLaunchBuilder::new() .set_app_name(app_name) .set_app_path(app_path) - .build(); + .build()?; if let Some(enable) = enable { // fix issue #26