pi-mono/packages/tui/native/darwin/README.md
Christian Klotz fd889a2741
fix(coding-agent,tui): paste Finder file paths instead of icons (#10136)
Read Finder file URLs before icon image data on macOS. Quote paths in
bash mode and reject terminal control characters before rendering.

Fixes #9999

Co-authored-by: 1dustycy <onedustycy@gmail.com>
2026-09-28 20:59:29 +01:00

730 B

Darwin native prebuilds

Provides modifier-key state and asynchronous text, image, and file-path clipboard access using AppKit.

Building

On macOS, run from the repository root:

npm --prefix packages/tui run build:native:darwin

The build uses Apple clang and the macOS SDK found through xcrun. Either Intel or Apple Silicon can build both targets: arm64 (macOS 11+) and x64 (macOS 10.15+).

Cross-building requires a Darwin toolchain with a macOS SDK and Mach-O linker, such as osxcross:

CC=/path/to/osxcross/clang SDKROOT=/path/to/MacOSX.sdk \
  npm --prefix packages/tui run build:native:darwin

The SDK must be obtained and used under Apple's license. Plain clang or Zig alone is not sufficient.