mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-28 00:10:05 +08:00
A daily cycle (first check 10s after start, gated by auto_check_update) checks the server and stages the current offer's installer under a name stamped with its version: only a surviving future publishes the staged file, and a stage that no longer verifies against the offer is replaced. The staged version is exposed through the get_staged_update command and the verge://staged-update-changed event, so the update button becomes a single restart action when the installer is ready. An install displaces the cycle; a cancel never touches staged bytes, and turning auto_check_update off stops new downloads without a discard protocol.