build(display): universal binary — compile x86_64 + arm64 and lipo into fat binary

Compiles both arches separately then links with lipo -create.
Prevents silent failure when a binary built on Apple Silicon is deployed
to Intel venue Macs (MacBook Air 2018 fleet).
This commit is contained in:
Scott Idem
2026-05-20 17:10:56 -04:00
parent 86ea73bfbd
commit 3da3b187ec
2 changed files with 20 additions and 4 deletions

View File

@@ -363,6 +363,9 @@ xcode-select --install
# From the repo root:
./scripts/build-display-control.sh
# The script compiles x86_64 and arm64 separately then links a universal binary.
# Expected output at the end: x86_64 arm64
# Test with a second display connected:
./resources/bin/display_control status
./resources/bin/display_control extend