Skip to content

Conversation

@andy1li
Copy link
Member

@andy1li andy1li commented Jan 12, 2026

image

Note

Introduces Windows installation support and validates installs across OSes in CI.

  • Adds install.ps1 to download, extract, install, and PATH-register codecrafters.exe on Windows (arch detection, version override via CODECRAFTERS_CLI_VERSION)
  • Updates workflow test.yml: splits install job into install-cli-linux and new install-cli-windows (runs install.ps1 via pwsh), keeps run-tests unchanged

Written by Cursor Bugbot for commit b7b2628. This will update automatically on new commits. Configure here.

Introduced a new PowerShell script (install.ps1) to automate the installation of the CodeCrafters CLI on Windows. The script handles version detection, architecture checks, downloading, extraction, and installation, while also updating the user's PATH environment variable. Additionally, updated GitHub Actions workflow to include a job for Windows installation.
@andy1li andy1li self-assigned this Jan 12, 2026
@andy1li andy1li changed the title Add Windows installation script for CodeCrafters CLI CC-2103: Add PowerShell installation script Jan 12, 2026
@linear
Copy link

linear bot commented Jan 12, 2026

…install.ps1

Updated the test.yml workflow to dot-source the install.ps1 script before running the codecrafters command. This change ensures that any functions or variables defined in install.ps1 are available in the current session, improving the execution context for the CLI version check.
@andy1li andy1li requested a review from rohitpaulk January 12, 2026 04:02
Modified the logic for updating the user's PATH environment variable in the install.ps1 script. The change ensures that the PATH is set correctly whether or not it already contains a value, improving the installation process for the CodeCrafters CLI on Windows.
@andy1li andy1li merged commit 047dce7 into main Jan 12, 2026
4 checks passed
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.

3 participants