Repository navigation
Release v1.4.0: In-app self-update, seamless host restart & target script sync - #38
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/update/apply): Hop-by-hop HTTPS allowlist downloads with Clash proxy fallback, dual SHA-256 verification, hardenedZipArchiveextraction, exclusive Win32CreateDirectoryWadministrator staging, atomicVERSIONcommit ordering, and owner/DACL-verified startup crash recovery.POST /api/update/restart): Detects disk vs. in-memory host version drift and hands off cleanly to a-HandoffWaitsuccessor process without interrupting active SSH tunnels or flashing disconnect banners.update-all): One-click button in Settings to refresh Linuxproxy-on/proxy-offscripts across all configured targets.1.4.0acrossVERSION,web/package*.json,README*,docs/WINDOWS-UI*, andCHANGELOG.md.