docs(release): name whose updater does the work in an update cycle (#463) #505

Merged
maximus merged 3 commits from issue-463-update-cycle-n-plus-1 into main 2026-10-25 21:47:33 +00:00

3 commits

Author SHA1 Message Date
le king fu
444db7b971 docs(release): no update check at startup, and the use of N's updater config (#463)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m14s
Refs #463

Self-review findings: "l'app ne vérifie rien au démarrage" read as if
the app checked nothing at startup, while it checks the licence key's
revocation there (#365); it now says that the app looks for no update
at startup. In docs/qa-update-cycle.md, what only the N -> N+1 cycle
proves is the use of N's plugins.updater configuration (public key,
windows section), its loading being proven by N's startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 00:15:35 -04:00
le king fu
3d5dcf03c7 docs(release): only the final check() runs of N's update path (#463)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m8s
Refs #463

Self-review finding: "of N, only the final check() runs" was too broad.
N's startup also runs the updater plugin's setup, which loads and
validates its plugins.updater config (tauri-plugin-updater 2.10.0,
lib.rs setup: api.config().clone(); config.rs: validate_endpoints).
Step 10, docs/qa-update-cycle.md and the REVIEW.md bullet now say "of
N's update path, only the final check() runs", and the N-1 -> N cycle
also proves that N starts with its updater config loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 00:13:01 -04:00
le king fu
99f1902122 docs(release): name whose updater does the work in an update cycle (#463)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m12s
Refs #463

An update cycle starts from the previous installed version, and that
version's updater downloads the package, checks its signature against
its own public key and installs it (useUpdater.ts: checkForUpdate ->
check(), downloadAndInstall consumes the Update of the same process,
installAndRestart -> relaunch(); dpkg -i / rpm -U are run by the old
process, the old process starts NSIS then exits). Of the new version,
only the final check() runs, on a click: it reads latest.json through
the new TLS stack at the new endpoint, nothing more.

Step 10 of /release, docs/qa-update-cycle.md and the update-cycle rule
of REVIEW.md now tell the two cases apart:

- a change to how the packages are built or published (release.yml,
  createUpdaterArtifacts) or to latest.json: cycle N-1 -> N;
- a change to the updater's code, features or dependencies
  (tauri-plugin-updater, reqwest, rustls, rustls-webpki) or to its
  plugins.updater configuration, which only N's own updater reads:
  cycle N-1 -> N, then N -> N+1 at the next release, due even if that
  release does not touch the updater.

docs/qa-update-cycle.md also cites the guard that keeps an archive
from being served to Windows (build-latest-json.sh read_asset, l. 66
and 92; check-latest-json.jq l. 34) next to the "Non prouvé" line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 00:04:00 -04:00