Skip to content

installer: SHA-256 verification + edition bump - #1

Merged
zdql merged 1 commit into
mainfrom
install/sha256-and-edition
May 26, 2026
Merged

zdql merged 1 commit into
mainfrom
install/sha256-and-edition

Conversation

@zdql

@zdql zdql commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • install.sh now downloads $asset.sha256 alongside each release binary and verifies it before moving the file into place. GAMECHAT_SKIP_CHECKSUM=1 bypasses for emergencies.
  • Picks shasum -a 256 (macOS) or sha256sum (Linux) at runtime.
  • Bumps Cargo.toml from edition 2024 to 2021 to widen the compiler version floor.
  • README install + env-var sections updated to document the new behaviour.

Test plan

  • cargo build clean
  • cargo test passes (13 existing tests, no change)
  • Local sanity: run installer end-to-end on macOS arm64 with and without GAMECHAT_SKIP_CHECKSUM=1
  • Verify shasum -a 256 and sha256sum paths both work (macOS vs Linux runner)

🤖 Generated with Claude Code

- install.sh now downloads $asset.sha256 alongside the binary and
  verifies it before moving the file into place. `GAMECHAT_SKIP_CHECKSUM=1`
  bypasses for emergencies. macOS uses `shasum`, Linux `sha256sum`.
- Drop edition back to 2021 to widen the compiler version floor.
- README: document the new verification step, env var priority order,
  PATH warning behaviour, and `'\\''` single-quote escape the installer
  emits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zdql
zdql merged commit 5911d67 into main May 26, 2026
@zdql
zdql deleted the install/sha256-and-edition branch May 26, 2026 18:05
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.

1 participant