Skip to content

feat: add macOS Apple Silicon (arm64) build support#36

Open
Myking1983 wants to merge 2 commits into
petehsu:mainfrom
Myking1983:feat/macos-arm64-support
Open

feat: add macOS Apple Silicon (arm64) build support#36
Myking1983 wants to merge 2 commits into
petehsu:mainfrom
Myking1983:feat/macos-arm64-support

Conversation

@Myking1983
Copy link
Copy Markdown

Problem

The current CI only builds for macos-latest (GitHub-hosted Intel runner), so macOS releases ship with macos-x86_64 binaries only. Apple Silicon users must either run under Rosetta 2 or build from source — but the prebuilt binary also has a codesign issue that prevents it from launching on macOS 15+.

Solution

  • Add a build-macos-arm64 CI job using the macos-14 runner (GitHub-hosted Apple Silicon / M1).
  • Each release now includes two macOS artifacts:
    • KiroProxy-{VERSION}-macos-x86_64 — Intel
    • KiroProxy-{VERSION}-macos-arm64 — Apple Silicon (native, no Rosetta needed)
  • Update build.py to detect host architecture via platform.machine() and embed arm64/x86_64 in local build output names, keeping them consistent with CI artifact names.

Changes

File Change
.github/workflows/build.yml Add build-macos-arm64 job; rename x86_64 artifact; update release job deps and download table
build.py Add get_arch() helper; pass arch into release package names

Test plan

  • Trigger a tag push and verify KiroProxy-*-macos-arm64 appears in the release assets
  • Confirm the arm64 binary runs on Apple Silicon without Rosetta (file output: Mach-O 64-bit executable arm64)
  • Confirm x86_64 binary is unaffected

🤖 Generated with Claude Code

myking and others added 2 commits May 18, 2026 11:34
Add a new `build-macos-arm64` CI job using the `macos-14` runner
(GitHub-hosted Apple Silicon) so every release ships a native arm64
binary alongside the existing x86_64 one.

Also update `build.py` to detect the host architecture via
`platform.machine()` and embed `arm64`/`x86_64` in the output
filename, so local builds are named consistently with CI artifacts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Help macOS users pick the right binary (arm64 vs x86_64) in both
the English and Chinese README quick-start sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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