Sfoglia il codice sorgente

fix: Allow program run with administrator to start at startup

MystiPanda 1 anno fa
parent
commit
e212ebfdb9
3 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 1 1
      patches/support-windows-aarch64.patch
  2. 1 2
      src-tauri/Cargo.lock
  3. 1 1
      src-tauri/Cargo.toml

+ 1 - 1
patches/support-windows-aarch64.patch

@@ -32,7 +32,7 @@ index 4c6dde5..5fd9ad8 100644
 -rquickjs = "0.3" # 高版本不支持 Linux aarch64
  serde_json = "1.0"
  serde_yaml = "0.9"
- auto-launch = "0.5"
+ once_cell = "1.18"
 @@ -34,6 +33,7 @@ port_scanner = "0.1.5"
  delay_timer = "0.11.5"
  parking_lot = "0.12"

+ 1 - 2
src-tauri/Cargo.lock

@@ -346,8 +346,7 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
 [[package]]
 name = "auto-launch"
 version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f012b8cc0c850f34117ec8252a44418f2e34a2cf501de89e29b241ae5f79471"
+source = "git+https://github.com/zzzgydi/auto-launch?branch=main#2d94a103ca20652a3baf581ca2c296791c35c09b"
 dependencies = [
  "dirs 4.0.0",
  "thiserror",

+ 1 - 1
src-tauri/Cargo.toml

@@ -28,7 +28,6 @@ sysinfo = "0.30"
 rquickjs = "0.3" # 高版本不支持 Linux aarch64
 serde_json = "1.0"
 serde_yaml = "0.9"
-auto-launch = "0.5"
 once_cell = "1.18"
 port_scanner = "0.1.5"
 delay_timer = "0.11.5"
@@ -39,6 +38,7 @@ tokio = { version = "1", features = ["full"] }
 serde = { version = "1.0", features = ["derive"] }
 reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
 sysproxy = { git="https://github.com/zzzgydi/sysproxy-rs", branch = "main" }
+auto-launch = { git="https://github.com/zzzgydi/auto-launch", branch = "main" }
 tauri = { version = "1.5", features = [ "dialog-open", "notification-all", "icon-png", "clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
 
 [target.'cfg(windows)'.dependencies]