Files
HashTool/docs/RELEASING.md
T
poli0981andClaude Opus 5.5 b9e7c31459 docs: the project lives on Gitea, issues on GitLab, releases on R2
README: Gitea badges, a "Where things live" note, downloads from
releases.poli0981.dev, how 1.3.0 and older move over (one manual download),
macOS no longer built, SHA256SUMS instead of GitHub attestations, and the
donation links that only FUNDING.yml had. CONTRIBUTING: issues and merge
requests on the GitLab mirror, patches by e-mail, CI on Gitea; Renovate, not
Dependabot. SECURITY: reports by e-mail to security@poli0981.dev, never as a
public issue; how releases are built and checked now. The privacy policy,
EULA, terms and disclaimer name the update feed on releases.poli0981.dev
(Cloudflare) instead of GitHub. ACCESSIBILITY (reviewed for 1.3.1),
ARCHITECTURE, RELEASING (rewritten for the R2 release), CODE_OF_CONDUCT,
ACKNOWLEDGEMENTS and CLAUDE.md follow; CLAUDE.md gains a "Forge & CI" section
pointing at the ops runbook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:12:38 +07:00

6.3 KiB

Releasing

Releases are built and published by the Release workflow (.gitea/workflows/release.yml) on Gitea Actions, and served from https://releases.poli0981.dev/hashtool (Cloudflare R2). Nothing is built on a developer machine. The forge, the runner and the R2 conventions are described in the ops repository's runbook (poli0981/.github, docs/GITEA-MIGRATION.md §3.3 and §5.1).

Steps

  1. Make sure main is green (CI, Security).
  2. Open a pull request chore(release): X.Y.Z (main only accepts changes through pull requests) that:
    • sets <Version> in Directory.Build.props;
    • renames ## [Unreleased] / ## [X.Y.Z] - Unreleased in CHANGELOG.md to ## [X.Y.Z] - YYYY-MM-DD. Merge it once the checks pass.
  3. Actions → Release → Run workflow on main with version = X.Y.Z (no v) and publish unchecked — a dry run.
  4. When it is green, run it again with publish checked.

The runner is the maintainer's PC: runs wait until it is on. The workflow refuses to publish when the version does not match Directory.Build.props, the CHANGELOG heading has no date, the run is not on main, the Actions variable R2_ACCOUNT_ID is missing, or the release or the tag already exists. Pull requests that change the release machinery get a dry run automatically (version X.Y.Z-ci.<run>).

What the workflow does

Job Runner Output
prepare ubuntu (Docker) version checks, release notes from CHANGELOG
app (win) windows (host mode) HashTool-win-Setup.exe, HashTool-win-Portable.zip, HashTool-X.Y.Z-full.nupkg, releases.win.json, RELEASES
app (linux) ubuntu-24.04 (Docker) the AppImage, HashTool-X.Y.Z-linux-full.nupkg, releases.linux.json
cli windows, ubuntu-22.04 hashtool-X.Y.Z-win-x64.zip, hashtool-X.Y.Z-linux-x64.tar.gz (NativeAOT; Linux built on 22.04 for older glibc)
check ubuntu eng/assert-release.py on both channels
publish ubuntu CycloneDX SBOMs and SHA256SUMS; rclone uploads them and the CLI archives to hashtool/X.Y.Z/; vpk upload s3 for linux
publish-win windows vpk upload s3 for win
release ubuntu checks every public file and both feeds, then the Gitea release (notes + links, no binaries), which creates the tag
announce — Discord announcement through the ops repository's announce-release.yml

Each app job publishes a self-contained single-file build, starts it headless (--smoke-test --expect-version) and packs it with vpk. The Windows jobs run on the maintainer's PC: the app keeps its data in the job's temp folder (HASHTOOL_DATA_DIR), and no installer is ever run there.

Only publish, publish-win, release and announce see credentials (user-level secrets R2_RELEASES_ACCESS_KEY_ID / R2_RELEASES_SECRET_ACCESS_KEY, variable R2_ACCOUNT_ID, the Discord webhooks), and they run only for a dispatched run with publish checked.

What is published where

Where Files
releases.poli0981.dev/hashtool/ Velopack: releases.win.json, RELEASES, releases.linux.json (the feeds clients read, uploaded last), the full packages, HashTool-win-Setup.exe, HashTool-win-Portable.zip, the AppImage. The installer, portable and AppImage names stay the same, so their links always serve the newest release (Cloudflare does not cache them). vpk keeps the 10 newest releases in each feed.
releases.poli0981.dev/hashtool/X.Y.Z/ SHA256SUMS, the CLI archives, hashtool-app-X.Y.Z.cdx.json, hashtool-cli-X.Y.Z.cdx.json. Never replaced: rclone uploads with --immutable.
git.poli0981.dev/poli0981/HashTool/releases the release notes with links to the files above; no binaries (the forge's disk is not for them)

SHA256SUMS lists every file this version ships, including the Velopack files at the folder root, but not the feeds, which every later release rewrites.

Invariants — never change these

Velopack clients only find a release when these stay the same:

Windows Linux macOS (Apple silicon), 1.x only
Velopack pack id HashTool HashTool HashTool
Channel win (x64) linux (x64) osx (arm64), osx-x64 (Intel)
Main executable CheckHash.exe (<AssemblyName>CheckHash</AssemblyName>) CheckHash CheckHash
Title / bundle no --packTitle (title "HashTool"), shortcuts Desktop + Start menu --packTitle "Hash Tool" Hash Tool.app, bundle id com.HashTool.HashTool (build/macos/Info.plist)

Also: tags have no v prefix (1.3.1), releases are not pre-releases, and settings stay in LocalApplicationData/HashTool/settings/config.json. Releases are published with --delta None: every update downloads the full package.

Moving off GitHub (1.3.1)

  • Hash Tool 1.3.0 and older read the feed of the GitHub repository, which is gone with the suspended account. They never see a newer release: their users download 1.3.1 once by hand (README, CHANGELOG and the 1.3.1 notes say so). Installing over an existing copy keeps the settings; from 1.3.1 on the app updates from releases.poli0981.dev.
  • macOS is no longer built: Gitea has no macOS runner (migration decision D9). 1.3.0 is the last macOS release. The osx/osx-x64 channels and build/macos/Info.plist stay as they are, should macOS builds return.
  • The upgrade gate is switched off. Until 1.3.0 it updated a real 1.1.3 portable build with its own Velopack 0.0.1298 updater before publishing. Those portables were GitHub release assets, and 1.x clients cannot reach R2 anyway, so the gate has nothing left to protect (migration decision HT2). tests/Compat/LegacyClient stays: should the GitHub account ever come back, a bridge release there would need it.
  • Build provenance attestations are gone (no OIDC on Gitea, D7). SHA256SUMS and the public build log remain.

After publishing

  • Check the release page links every file, and that SHA256SUMS matches (sha256sum -c SHA256SUMS --ignore-missing next to the downloaded files).
  • Update an existing installation through Update → Check Now on at least one machine (a portable copy in a scratch folder, never the installer on the maintainer's PC).
  • If something is wrong, publish a fixed X.Y.Z+1 instead of editing or deleting the release: clients may already have downloaded it, and versioned files on R2 are never replaced.