修复windows服务不能自启动的问题

This commit is contained in:
lubeilin
2023-06-02 18:26:38 +08:00
parent 44035685c8
commit 59f07f2d75
5 changed files with 184 additions and 75 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "switch-desktop"
version = "1.0.4"
version = "1.0.5"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -28,9 +28,10 @@ fs2 = "0.4.3"
os_info = "3.5.1"
[target.'cfg(any(target_os = "linux",target_os = "macos"))'.dependencies]
sudo = "0.6.0"
libc = "0.2"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = ["handleapi", "processthreadsapi", "winnt", "securitybaseapi", "impl-default"] }
#runas = "0.2.1"
windows-service = "0.5.0"
windows-service = "0.6.0"