Apply the update through « Redémarrer » or at the next launch (#59)
The settings show « Redémarrer » next to « Mise à jour prête ». It verifies the kept package of the chosen channel again, hands exactly that file to Velopack with `Update.exe apply --waitPid <pid> --package <file>`, then quits as « Quitter » does (WM_QUIT, never hidden in the notification area). Velopack 1.2.161 reads the file in place, waits for the app to exit, replaces current\ and opens the new version once, or the old one again after a failure. After « Quitter », the next launch does the same before loading the app, offline too, but only in the single instance: a shortcut launched while the app runs still just brings its window back (#50). An attempt record, <channel>-<version>.attempt next to the package folder, holds the installer's process id. A launch that finds it never retries on its own: it waits for a running installer (a close second launch, or the old version reopened after a failure), then either leaves the app to the new version or opens the current one with a one-time notice. « Redémarrer » retries; a newer release starts fresh. The record survives a new download of the same version, since Velopack deletes a package it cannot open. Velopack's swap has no rollback between its two renames; this residual risk is recorded in ADR-0005 and docs/paquets-windows.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8e12abf7f4
commit
ab3c6964a5
10 files changed
+549
-47
No files matched your search
@@ -20,6 +20,7 @@ The MSVC C runtime is linked statically (`.cargo/config.toml`), so a package shi
|
||||
## Consequences
|
||||
|
||||
- The updater must download into a folder outside the installation and Velopack's cache, call `verify_release` there, and hand exactly those verified bytes to Velopack; unverified bytes never enter `%LOCALAPPDATA%\ArenaTracker`, even after an interrupted download.
|
||||
- Applying runs `Update.exe apply --waitPid <pid> --package <file>` on the file just verified again, which Velopack reads in place. Its folder swap has no rollback: a power cut between its two renames leaves no `current` folder until a reinstall (accepted; `docs/paquets-windows.md`, « Application de la mise à jour »).
|
||||
- Delta packages stay off (`--delta None`) until their preparation path can be authenticated too.
|
||||
- Upgrading Velopack means re-reading its startup, locator and install code for new paths that open local packages.
|
||||
- The private key never enters the repository, the app or the artefacts; only its public key is built into the executable.
|
||||
Reference in new issue
Block a user