Skip to content

Release v1.4.0: In-app self-update, seamless host restart & target script sync - #38

Merged
Scrates1 merged 1 commit into
mainfrom
release/v1.4.0
Nov 30, 2026
Merged

Scrates1 merged 1 commit into
mainfrom
release/v1.4.0

Conversation

@Scrates1

Copy link
Copy Markdown
Owner

Summary

  • In-app one-click self-update (POST /api/update/apply): Hop-by-hop HTTPS allowlist downloads with Clash proxy fallback, dual SHA-256 verification, hardened ZipArchive extraction, exclusive Win32 CreateDirectoryW administrator staging, atomic VERSION commit ordering, and owner/DACL-verified startup crash recovery.
  • Local version drift & zero-UAC seamless restart (POST /api/update/restart): Detects disk vs. in-memory host version drift and hands off cleanly to a -HandoffWait successor process without interrupting active SSH tunnels or flashing disconnect banners.
  • Target runtime script sync (update-all): One-click button in Settings to refresh Linux proxy-on / proxy-off scripts across all configured targets.
  • Version bump: 1.4.0 across VERSION, web/package*.json, README*, docs/WINDOWS-UI*, and CHANGELOG.md.

…et script sync (v1.4.0)

- Add POST /api/update/apply and src/ui/SelfUpdate.ps1 with hop-by-hop HTTPS redirect allowlist checks, Clash-proxy-to-direct download fallback, dual SHA-256 verification (.sha256 manifest + GitHub Release asset digest), hardened ZipArchive extraction, exclusive Win32 CreateDirectoryW administrator staging under %ProgramData%\ClashSshProxy\staging, atomic VERSION commit ordering, and owner/DACL-verified startup crash recovery
- Support trusted Git fast-forward updates when git.exe resides under a protected Program Files path, stripping inherited GIT_* configuration and rejecting local URL rewrites or includes while falling back to release links and local drift restart otherwise
- Pin running host version on startup, surface currentVersion/diskVersion/restartRequired in /api/state and /api/update, and add zero-UAC seamless host restart (POST /api/update/restart with -HandoffWait and one-time session token handoff)
- Add one-click Sync all target scripts (update-all) in Settings and bump version/docs/CHANGELOG to 1.4.0
@Scrates1
Scrates1 merged commit 5a53eab into main Nov 30, 2026
5 checks passed
@Scrates1
Scrates1 deleted the release/v1.4.0 branch November 30, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant