GitHub Releases is gone. A v* tag now builds and packs on the Windows runner
as before (scripts/pack.ps1), then `vpk upload s3` puts the packages and the
feed on R2 (releases.poli0981.dev/commandforge, feed last), the ops
publish-r2.yml adds <version>/SHA256SUMS and the SBOM, a Gitea release gets
the notes and the links (no binaries), and the ops announcer posts to
Discord. R2 credentials stay in VPK_* environment variables of this
tag/dispatch-only workflow.
scripts/release-assets.ps1 (also runs locally) writes the CycloneDX SBOM
(CycloneDX tool 6.3.2, replacing GitHub's dependency-graph SBOM, decision
D7), SHA256SUMS of the files this version ships, and the notes from
CHANGELOG.md. The feed files are no longer hashed: vpk rewrites them on
upload, which is what made checksums.txt wrong for RELEASES and
releases.win.json in 2.1.0 and 2.2.0.
A manual run on a branch is a dry run: it builds, packs, reads the previous
release from R2 and keeps the files as an artifact, but uploads nothing.
Attestations go (no OIDC on Gitea). VirusTotal stays optional.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ISettingsService: window size and maximized state are restored again
since the window became resizable; WarnOnCancel only asks on close.
- IDialogService, CrashHandlingService, NaturalLanguageSearch (golden
rule #7, not #5), the test project and pack.ps1 described the
pre-2.0 setup (message boxes, the Generic Host, EN+VI only,
Directory.Packages.props).
- build.yml hashed the removed Directory.Packages.props for its NuGet
cache keys; it now hashes Directory.Build.props, where the
SonarAnalyzer version lives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .config/dotnet-tools.json pins vpk 1.2.161 to match the Velopack library (CI previously installed
whatever vpk was latest).
- pack.ps1: ReadyToRun publish for faster startup, fail fast on any non-zero exit code, verify
the Elevator is in the publish folder, `-SkipPack` for publish-only runs, and `--runtime` so vpk
bundles x64 Update/Setup helpers instead of defaulting to x86 (the update channel stays "win").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Đợt 1 of the post-v1.0 line (metadata + packaging).
- Directory.Build.props: inheritable package/assembly metadata
(Product, Authors/Company=poli0981, Copyright, Description,
RepositoryUrl/PackageProjectUrl, default Version 1.0.0).
AssemblyVersion is intentionally NOT pinned so it follows Version
(stamped from the git tag at publish), keeping the in-app About /
Report-Bug version accurate.
- scripts/pack.ps1: pass --packTitle / --packAuthors to vpk pack
(correct plural flag) and -p:FileVersion to dotnet publish.
- tests: AssemblyMetadataTests verifies Company / Product / Copyright.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Workflows (.github/workflows/):
- build.yml: Windows restore + dotnet format --verify + Release build
(0-warning gate) + tests, on PR/push to main.
- codeql.yml: project-specific CodeQL C# (Windows, builds CommandForge.slnx).
The shared reusable codeql-csharp.yml runs on Linux and expects a .sln, so
it cannot build this WPF/.slnx app.
- release.yml: on tag v*, install vpk, download the previous release for the
delta base (continue-on-error on first release), publish self-contained +
vpk pack, publish the GitHub Release (vpk upload github), attach SHA-256
checksums.txt, and optionally submit to VirusTotal (gated on VT_API_KEY).
- announce-release.yml + notify-ci-failure.yml: thin callers of the reusable
Discord workflows in poli0981/.github (secrets: inherit).
- dependabot.yml: weekly nuget + github-actions updates.
Fix: scripts/pack.ps1 now passes -p:Version/-p:InformationalVersion to
dotnet publish, so the in-app "App version" matches the release tag instead of
defaulting to 1.0.0.
Docs (English, public): BUILD.md, RELEASING.md, UPDATES.md — including the
Velopack update mechanism (first vs subsequent release and how deltas are
produced) and the required repo secrets.
No source changes; 0-warning Release build, 104 tests pass; actionlint clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
vpk verifies VelopackApp.Build().Run() is present in the main executable. Calling
it via VelopackBootstrap (Infrastructure) failed that check ("Unable to verify
VelopackApp is called"), so call it directly in App.OnStartup and reference
Velopack from the WPF project. Removes the now-unused VelopackBootstrap. Also fix
pack.ps1 --mainExe to CommandForge.Wpf.exe (the actual published exe name).
Verified: scripts/pack.ps1 -Version 0.3.0 with vpk 1.2.0 produces
CommandForge-win-Setup.exe + *-full.nupkg + RELEASES; the Elevator is bundled.
53 tests still pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add the update path per the roadmap: IUpdateService -> VelopackUpdateService
(GithubSource against the project repo; per-user install, no UAC), a minimal
"Check for updates" dialog (check -> prompt -> progress -> apply & restart),
mapped error dialogs (404/403/429/5xx/offline; 419 is not special-cased), an
"auto-check on startup" setting, and scripts/pack.ps1 for vpk packaging.
- Application stays Velopack-free: UpdateError, UpdateCheckResult, pure
UpdateErrorMapper, widened IUpdateService, CheckForUpdateUseCase.
- Infrastructure: VelopackUpdateService (lazy manager, degrades to NotInstalled
in dev) + VelopackBootstrap so the WPF layer never references Velopack.
- WPF: UpdateViewModel/UpdateDialog, IUpdateDialogService, Tools menu item,
VelopackApp.Build().Run() at startup + non-blocking auto-check, gated on the
Phase 3 "command running" guard before applying.
- Tests: error mapping (429 handled, 419 -> Unknown), use-case pass-through,
DI resolution.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>