Skip to content

feat(release): publish checksums.txt and verify downloads in the installer#68

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/release-checksums
Jul 5, 2026
Merged

feat(release): publish checksums.txt and verify downloads in the installer#68
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/release-checksums

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Fixes #50.

The build step now computes sha256 digests for every release archive as it creates them and uploads a checksums.txt (sha256sum format) with the release assets. The install script downloads it from the same release directory as the archive and verifies before extraction:

  • match: prints "Checksum verified" and proceeds
  • mismatch: fails with the expected and actual digests
  • release predates checksums.txt, or no sha256 tool on the system: skips verification, exactly as before

Verified with a sandboxed HOME, clean PATH, pinned --version 1.2.3 install: full download runs, verification skips gracefully (that release has no checksums file), binary lands and reports its version. The checksum-parsing awk was exercised against a synthetic manifest. Both install-script copies stay in sync (diff -q in CI keeps it that way after #66).

…aller

The build now writes a sha256sum-compatible checksums.txt next to the
release archives and uploads it with them. The install script fetches
it and verifies the downloaded archive before extraction, failing with
the expected/actual digests on mismatch. Releases published before
checksums.txt skip verification, as do systems with no sha256 tool.
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 5, 2026 11:29am

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit d659de5 into main Jul 5, 2026
9 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/release-checksums branch July 5, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No checksums published for release binaries and the installer verifies nothing

1 participant