windows: updates from the app, and a dark theme
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>
This commit is contained in:
1 parent
ed9275250b
commit
5bd47f7676
32 files changed
+911
-26
No files matched your search
@@ -102,6 +102,11 @@ pub enum Request {
|
||||
AwgSet { name: String, on: bool },
|
||||
/// The last lines of a system-wide profile's tunnel log. Secrets scope, as logs are.
|
||||
AwgLog { name: String, lines: usize },
|
||||
/// This version, and the newest release if it is newer.
|
||||
UpdateCheck,
|
||||
/// Fetches the newest release's setup program, checks it, and runs it: the service stops,
|
||||
/// is replaced, and starts again, and the app with it. Services scope.
|
||||
UpdateInstall,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
|
||||
Reference in new issue
Block a user