macOS build: universal app for Apple Silicon and Intel, macOS 11+ #23

Merged
noah merged 1 commits from macos-build into main 2026-11-03 14:41:25 -07:00
Owner

Adds the macOS build: one universal Alkane Toolkit.app (arm64 + x86_64), macOS 11 or later, ad-hoc signed, not notarized.

  • scripts/build-wx-macos.sh: universal static wxOSX 3.3.3 from the vendored tree.
  • scripts/build-gui-macos.sh: both Rust targets, merged with lipo.
  • ci/package-macos.py: app bundle + zip (alkane-toolkit-vX.Y.Z-macos-universal.zip).
  • wx-rs patch 0009: wx-config path on macOS, logical sizes, clang runtime link.
  • Icon, docs/macos.md, README and manual.

Why macOS 11: the current SDK libc++ refuses older deployment targets (it warns that older platforms are unsupported).

Verified on the office M1 (macOS 27.0.1): both slices build, workspace unit tests pass, headless UI self-test 52/52 on arm64. The x86_64 slice was built but not run (no Rosetta on that Mac).

Not in this PR: a CI job. Building in CI needs a runner on a Mac.

Generated with Claude Code

Adds the macOS build: one universal Alkane Toolkit.app (arm64 + x86_64), macOS 11 or later, ad-hoc signed, not notarized. - scripts/build-wx-macos.sh: universal static wxOSX 3.3.3 from the vendored tree. - scripts/build-gui-macos.sh: both Rust targets, merged with lipo. - ci/package-macos.py: app bundle + zip (alkane-toolkit-vX.Y.Z-macos-universal.zip). - wx-rs patch 0009: wx-config path on macOS, logical sizes, clang runtime link. - Icon, docs/macos.md, README and manual. Why macOS 11: the current SDK libc++ refuses older deployment targets (it warns that older platforms are unsupported). Verified on the office M1 (macOS 27.0.1): both slices build, workspace unit tests pass, headless UI self-test 52/52 on arm64. The x86_64 slice was built but not run (no Rosetta on that Mac). Not in this PR: a CI job. Building in CI needs a runner on a Mac. Generated with [Claude Code](https://claude.com/claude-code)
noah added 1 commit 2026-11-03 14:26:57 -07:00
macOS build: universal app for Apple Silicon and Intel, macOS 11+
verify / verify (pull_request) Successful in 7m33s
source / check (pull_request) Skipped
verify / verify-windows (pull_request) Successful in 5m48s
bb31a7befc
- scripts/build-wx-macos.sh: static, monolithic, universal (arm64 +
  x86_64) wxOSX/Cocoa 3.3.3 from the vendored tree, with wx's bundled
  image/zlib/regex/expat so the app links only system frameworks.
  Minimum macOS 11.0: current SDKs' libc++ supports nothing older.
- scripts/build-gui-macos.sh: builds both Rust targets against that
  prefix and merges them with lipo.
- ci/package-macos.py: "Alkane Toolkit.app" (Info.plist, icon, local
  network usage string), ad-hoc signed, zipped with ditto as
  alkane-toolkit-vX.Y.Z-macos-universal.zip with LICENSE and README.
- crates/alkane-gui/macos: app icon (.icns) from the same glyph as the
  Windows icon, plus the script that makes it.
- wx-rs patch 0009: macOS goes through wx-config (drops the universal
  -arch flags, maps -framework), reports logical sizes like GTK/MSW
  instead of narrowing floats to ints, and links clang's compiler
  runtime for wxOSX's @available checks.
- docs/macos.md, README and the manual's install chapter.

Verified on an M1 running macOS 27.0.1: both slices build, all
workspace unit tests pass, and the headless UI self-test passes 52/52
on arm64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
noah merged commit d9dc60918c into main 2026-11-03 14:41:25 -07:00
noah deleted branch macos-build 2026-11-03 14:41:25 -07:00
Sign in to join this conversation.