Skip to content

fix(install): support windows-arm64 - #44665

Closed
harshil-mistry wants to merge 1 commit into
anomalyco:devfrom
harshil-mistry:fix/install-windows-arm64
Closed

harshil-mistry wants to merge 1 commit into
anomalyco:devfrom
harshil-mistry:fix/install-windows-arm64

Conversation

@harshil-mistry

@harshil-mistry harshil-mistry commented Aug 24, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #44664

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

install works out the platform correctly on Windows ARM64 — uname -s gives MINGW*, which maps to windows, and uname -m gives aarch64, which maps to arm64. So combo ends up as windows-arm64. The problem is the next case statement, which lists the supported combos and never included windows-arm64, so the script fell through to the *) branch and exited with Unsupported OS/Arch: windows/arm64.

That binary does exist. packages/opencode/script/build.ts declares { os: "win32", arch: "arm64" }, and publish.yml signs it, verifies the signature, repacks it and uploads opencode-windows-arm64.zip on every release. Nothing else in the script needed changing: archive_ext is already .zip for windows, and needs_baseline only applies to x64, so the filename it builds is opencode-windows-arm64.zip, which is exactly the published asset name.

Adding the combo to the allowlist is the whole fix. This also unblocks opencode upgrade for curl installs, since that path re-runs this same script (packages/opencode/src/installation/index.ts fetches https://opencode.ai/install).

How did you verify your code works?

I don't have a Windows ARM64 machine, so I want to be upfront that I did not run the installer end to end on one.

What I did check:

  • Ran the old and new case statements directly against sample combos. Before: windows-arm64 hits the reject branch. After: it is accepted, and unsupported combos like freebsd-x64 still get rejected, so the allowlist hasn't been loosened beyond the one target.
  • Confirmed the asset the script would request actually exists — https://github.com/anomalyco/opencode/releases/latest/download/opencode-windows-arm64.zip returns HTTP 200.
  • Confirmed the filename the script builds for this target matches that asset name.

A reviewer can confirm the same by running the installer on Windows ARM64, or by checking the release assets against the allowlist.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The arch allowlist omitted windows-arm64, so the installer aborted with
"Unsupported OS/Arch: windows/arm64" even though opencode-windows-arm64.zip
is built, signed and published on every release.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Related PR Found:

Note: PR #44665 (current PR) appears to be addressing a specific installation script issue where Windows ARM64 was missing from the supported OS/Arch allowlist, blocking installations and upgrades despite the binaries being built and available. The related PR #44214 adds the actual desktop agent support for Windows ARM64 but doesn't fix the installation script validation.

These are complementary changes rather than duplicates, but worth cross-referencing to ensure coordinated Windows ARM64 support rollout.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installer rejects windows-arm64 despite publishing that binary

1 participant