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
@@ -50,6 +50,11 @@ JSON
|
||||
release=$(ls -d dist/ProxySuite-*-windows-x64/components 2>/dev/null | tail -1 || true)
|
||||
[ -n "$release" ] && cp -r "$release/zapret" "$STATE/bin/" 2>/dev/null || true
|
||||
cargo build -q -p ps-service -p ps-gui
|
||||
# The app's own preferences for the shots: the light theme (one dark shot below).
|
||||
mkdir -p "$WORK/prefs/light/proxy-suite" "$WORK/prefs/dark/proxy-suite"
|
||||
echo '{"theme":"light","checkUpdates":false}' >"$WORK/prefs/light/proxy-suite/app.json"
|
||||
echo '{"theme":"dark","checkUpdates":false}' >"$WORK/prefs/dark/proxy-suite/app.json"
|
||||
export XDG_CONFIG_HOME="$WORK/prefs/light"
|
||||
target/debug/proxy-suite-service --console --state-dir "$STATE" --socket "$SOCK" >"$WORK/service.log" 2>&1 &
|
||||
SERVICE=$!
|
||||
trap 'kill $SERVICE $SERVER 2>/dev/null || true; rm -rf "$WORK"' EXIT
|
||||
@@ -75,3 +80,4 @@ shot amneziawg 378
|
||||
shot logs 414
|
||||
shot settings 450
|
||||
shot components 486
|
||||
XDG_CONFIG_HOME="$WORK/prefs/dark" shot overview-dark 162
|
||||
Reference in new issue
Block a user