- CHANGELOG: the 2.0.0 entry, plus the missing 1.5.1 compare link and a corrected [Unreleased] link. - USAGE.md: a user guide for the new UI (the app's "User guide" link already points here). - README: features as of 2.0 (261 commands, 12 categories, five languages, Fluent UI), download verification with `gh attestation verify`, and a contact table. - Contact addresses on poli0981.dev: security@ (SECURITY.md, next to private vulnerability reporting), privacy@ (PRIVACY.md), legal@ (EULA, DISCLAIMER), copyright@/dmca@/takedown@ (a new takedown section in DISCLAIMER), code@ (CONTRIBUTING, CODE_OF_CONDUCT, MAINTAINERS). - SECURITY: the current threat model and its known limits (per-user install, the winget alias), release attestations, SBOM and scanners. - PRIVACY: every local file the app keeps, what the logs contain, and how the update check and bug reports work. - BUILD, RELEASING, UPDATES: versions in each .csproj, the pinned vpk tool, pack.ps1 options, the CI workflows and rulesets, signed tags, the draft-then-publish release flow, and the new update behavior. - THIRD-PARTY-NOTICES: WPF-UI and Fluent System Icons in, Material Design and Hosting out, current versions and build-time tools. - CONTRIBUTING and the PR template: signed commits, required checks, five .resx files, catalog rules. The bug template points at More > About. - CLAUDE.md: rule 6 allows provenance attestations; stack, namespace and conventions for v2. The EULA's terms are unchanged (still version 1.1), so nobody is asked to accept them again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.4 KiB
How updates work (Velopack)
CommandForge installs and updates itself with Velopack. Updates are per-user and need no UAC.
For users
- Download
CommandForge-win-Setup.exefrom the latest release and run it. It installs per-user under%LocalAppData%\CommandForge. - After that, the app checks GitHub Releases for newer versions — on startup if Settings →
Updates → Check for updates on startup is on (the default), or when you choose More (⋯) →
Check for updates or press
F5. - When a newer version exists, choose Download & restart. The app downloads the update (a small delta when possible), then restarts into the new version.
Good to know:
- Closing the update dialog — including with its X button — cancels the download.
- The app never restarts in the middle of a command: if one is running, finish or cancel it first. If you start a command while the update downloads, the restart waits; choose Download & restart again when the command is done.
- Before applying an update, the app ends the admin session, because the elevated helper runs from the folder that Velopack replaces.
- Errors are shown in plain words: offline or timed out, no release feed found (404), rate limited (403/429), and GitHub server error (5xx).
The only network connection involved is to GitHub (see PRIVACY.md).
How it works under the hood
Program.MaincallsVelopackApp.Build().Run()before WPF starts, to handle the install/update/uninstall hooks.- The app checks for updates via
UpdateManager(new GithubSource("https://github.com/poli0981/CommandForge", null, prerelease: false)). - Download and apply are separate steps, so the app can end the admin session and check for a running command just before it restarts.
- Auto-update only works for an installed build (not a dev or portable run); the app detects this and says so instead of offering an update.
Release artifacts and the delta mechanism
Each release (see RELEASING.md) uploads the contents of Releases/:
| Asset | Purpose |
|---|---|
CommandForge-win-Setup.exe |
First-time installer |
CommandForge-<version>-full.nupkg |
Full package (fallback / first install of a version) |
CommandForge-<version>-delta.nupkg |
Delta from the previous version (small download) |
releases.win.json / RELEASES |
Update manifest the client reads |
checksums.txt |
SHA-256 of the assets (manual verification) |
sbom.spdx.json |
SPDX software bill of materials |
The installer and packages also have build-provenance attestations (see the README).
Velopack needs the previous -full.nupkg present while packing to compute a delta. The
release workflow runs vpk download github before vpk pack, so every release after the first
produces both a -full.nupkg and a -delta.nupkg. Clients on the previous version (for
example 1.5.1 when 2.0.0 ships) download only the delta; the full package remains the fallback. The very first release had no previous version, so it shipped only a full package.
If you ever build a release locally, run
dotnet vpk download github --repoUrl <repo>first so the prior full package is available for the delta — otherwise only a full package is produced.