Skip to content

feat(release): ship Windows binaries (amd64, arm64) - #809

Open
vijayakrishnans wants to merge 1 commit into
mainfrom
release/windows-build
Open

vijayakrishnans wants to merge 1 commit into
mainfrom
release/windows-build

Conversation

@vijayakrishnans

Copy link
Copy Markdown
Contributor

What

The GitHub release gains orun_<version>_windows_amd64.zip and orun_<version>_windows_arm64.zip, each with orun.exe. Until now orun shipped only for darwin and linux, so Windows users (for example, wiring orun mcp serve into an agent) had to go through WSL.

Changes

  • .goreleaser.yaml: adds windows to goos, packages Windows as .zip (format_overrides), and the post-build hook copies orun{{ .Ext }}, so dist/bin/windows/<arch>/orun.exe gets the right name.
  • cmd/orun/command_run_background*.go: the only Windows compile blocker was syscall.SysProcAttr{Setpgid: true} in orun run --background. That moves behind backgroundSysProcAttr():
    • _unix.go: Setpgid: true (unchanged behaviour)
    • _windows.go: CREATE_NEW_PROCESS_GROUP, so the detached run survives a Ctrl+C in the launching console
  • provider.yaml is unchanged. The kiox OCI artifact keeps its four platforms, and Windows ships only through the GitHub release. Adding it to the OCI manifest can follow once kiox's Windows support is confirmed.

Verified

  • GOOS={linux,darwin,windows} GOARCH={amd64,arm64} go build ./cmd/orun: all six build
  • GOOS=windows go vet ./cmd/...: clean
  • go test ./cmd/orun/...: pass
  • goreleaser check plus goreleaser release --snapshot --skip=publish: produces the four existing tarballs, both Windows zips and checksums.txt
  • orun.exe version and orun.exe --help run on Windows (x86-64)

Not in this PR

  • install.sh stays POSIX-only. Windows users download the zip from the release page for now. A install.ps1 can follow.
  • orun agent --detach still returns "not supported on this platform" on Windows (existing agent_detach_other.go behaviour).

🤖 Generated with Claude Code

The GitHub release now carries orun_<version>_windows_{amd64,arm64}.zip
with orun.exe, alongside the existing darwin and linux tarballs.

To get there, `orun run --background` stops using the Unix-only
Setpgid: process-group setup moves into command_run_background_unix.go
(unchanged behaviour) and command_run_background_windows.go, which
starts the detached run with CREATE_NEW_PROCESS_GROUP so a Ctrl+C in
the launching console does not reach it.

provider.yaml (the kiox OCI platforms) is unchanged; Windows ships
through the GitHub release only.

Verified: all six targets cross-compile, GOOS=windows go vet ./cmd/...
is clean, go test ./cmd/orun/... passes, a goreleaser snapshot release
produces both zips, and orun.exe runs `version` and `--help` on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: vijayakrishnans <vijayakrishnan12994@gmail.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T11:18:57.306552Z 17b24a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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