Skip to content

feat(install): add Chocolatey package for Windows - #2773

Open
denis-peshkov wants to merge 2 commits into
rtk-ai:developfrom
denis-peshkov:feat/install-chocolatey-windows
Open

denis-peshkov wants to merge 2 commits into
rtk-ai:developfrom
denis-peshkov:feat/install-chocolatey-windows

Conversation

@denis-peshkov

Copy link
Copy Markdown

Solution

Add a Chocolatey Community package (choco install rtk) that installs rtk.exe from the existing GitHub Release zip with SHA256 verification, and automate pack/push on stable releases (same cadence as Homebrew).

Closes: #2772


Changes

Add packaging/chocolatey/

  1. rtk.nuspec — package id rtk, metadata, Apache-2.0, Windows caveats in description
  2. tools/chocolateyinstall.ps1 — Install-ChocolateyZipPackage from release URL; checksum placeholder REPLACE_AT_RELEASE patched by CI
  3. tools/chocolateyUninstall.ps1 — shim cleanup (Chocolatey default)
  4. README.md — manual pack/push for first moderation

Update .github/workflows/release.yml

  1. job chocolatey after release (stable only, windows-latest)
  2. download checksums.txt, parse rtk-x86_64-pc-windows-msvc.zip SHA256
  3. choco pack → choco push when CHOCOLATEY_API_KEY set
  4. upload rtk.{version}.nupkg artifact

Update docs

  1. docs/guide/getting-started/installation.md — Chocolatey section
  2. README.md — choco install rtk in Windows setup
  3. .github/workflows/CICD.md — Chocolatey in release diagram

Scope: ~8 files, ~120 lines (no Rust changes).


Why this PR is small and safe

  • No new Windows build — reuses existing rtk-x86_64-pc-windows-msvc.zip from release matrix
  • Same trust model as Homebrew — URL + SHA256 from checksums.txt on each release
  • Opt-in push — job skips choco push without CHOCOLATEY_API_KEY
  • No runtime changes — packaging and CI only; filters/hooks unchanged
  • Portable package — no registry MSI; standard Chocolatey shim to rtk.exe

Maintainer follow-up: create community.chocolatey.org account, first manual push for moderation, then add repo secret CHOCOLATEY_API_KEY.

@aeppling aeppling self-assigned this Jul 4, 2026
@denis-peshkov
denis-peshkov force-pushed the feat/install-chocolatey-windows branch from 49f2eee to a0984d4 Compare July 10, 2026 04:47
@denis-peshkov
denis-peshkov force-pushed the feat/install-chocolatey-windows branch from a0984d4 to 69a592b Compare July 18, 2026 13:12
@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

denis-peshkov and others added 2 commits October 27, 2026 18:29
Add chocolatey job alongside winget (continue-on-error), and surface
`choco install rtk` in the README install snippet. Docs and packaging
landed in the previous commit.

Co-authored-by: Cursor <[email protected]>
@denis-peshkov
denis-peshkov force-pushed the feat/install-chocolatey-windows branch from 69a592b to d0d3b0b Compare October 27, 2026 16:31
@denis-peshkov

Copy link
Copy Markdown
Author

@aeppling conflicts fixed

@rtk-release-bot rtk-release-bot Bot removed the stale label Nov 2, 2026
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.

feat(install): Chocolatey package for Windows

2 participants