The service looks at the project's releases (windows-v* tags; pre-releases for a pre-release), fetches the newer setup program, checks its SHA-256 against the one published beside it, and runs it silently, detached, out of any job: the setup stops the service, replaces it, and starts it again. Run by the service (session 0), the setup's install starts the app in each signed-in user's session with their token rather than through Explorer. A failed copy during an upgrade starts the old service and app again. Request::UpdateCheck (anyone), UpdateInstall (services scope); proxy-ctl update [check|install]; the app's Overview card. The app's own preferences (%APPDATA%\ProxySuite\app.json): the theme (light, dark, or as Windows, followed as it changes; the title bar too) and whether to look for updates at start and daily. Settings > This app, and a sun/moon toggle in the sidebar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.2 KiB
TOML
50 lines
1.2 KiB
TOML
[package]
|
|
name = "ps-service"
|
|
description = "Proxy Suite for Windows: the service that runs the backends"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "proxy-suite-service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
ps-core.workspace = true
|
|
ps-ipc.workspace = true
|
|
anyhow.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tokio.workspace = true
|
|
clap.workspace = true
|
|
reqwest.workspace = true
|
|
rustls.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
rand.workspace = true
|
|
base64.workspace = true
|
|
x25519-dalek = { version = "2", features = ["static_secrets"] }
|
|
sha2.workspace = true
|
|
zip.workspace = true
|
|
flate2 = "1"
|
|
tar = { version = "0.4", default-features = false }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-service.workspace = true
|
|
windows-sys = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_JobObjects",
|
|
"Win32_Security_Authorization",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Registry",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Threading",
|
|
"Win32_Networking_WinInet",
|
|
"Win32_System_RemoteDesktop",
|
|
"Win32_System_Environment",
|
|
] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|