macos-app.sh --universal: one SixNG.app for Apple Silicon and Intel #5

Manually merged
github merged 1 commit from gh-pr/5/head into gh-pr/5/base 2026-11-26 20:02:39 +00:00
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-21 21:50 UTC · original
vladbondarenko97:macos-universal → master · +21 −4 · 2 files · 1 commits · merged 2026-11-21 23:03 UTC

Follow-up to #2. scripts/macos-app.sh --universal [out-dir] builds aarch64-apple-darwin and x86_64-apple-darwin (with MACOSX_DEPLOYMENT_TARGET=11.0) and joins sixng-gui and sixng with lipo, so one SixNG.app runs on both kinds of Mac. Without the flag nothing changes (host build). Needs both targets: rustup target add aarch64-apple-darwin x86_64-apple-darwin; libopus cross-builds through CMake without extra setup.

Tested on Apple Silicon: lipo -info shows x86_64 arm64 for both binaries, minos 11.0 on both slices; the x86_64 slice run under Rosetta (arch -x86_64) lists an indexed archive identically to the arm64 slice, and the x86_64 GUI starts. Not run on a real Intel Mac. Build time is about 2.5 min for both targets.

🤖 Generated with Claude Code

**@⁠vladbondarenko97** on GitHub · 2026-11-21 21:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/5) `vladbondarenko97:macos-universal` → `master` · +21 −4 · 2 files · 1 commits · merged 2026-11-21 23:03 UTC Follow-up to #2. `scripts/macos-app.sh --universal [out-dir]` builds `aarch64-apple-darwin` and `x86_64-apple-darwin` (with `MACOSX_DEPLOYMENT_TARGET=11.0`) and joins `sixng-gui` and `sixng` with `lipo`, so one `SixNG.app` runs on both kinds of Mac. Without the flag nothing changes (host build). Needs both targets: `rustup target add aarch64-apple-darwin x86_64-apple-darwin`; libopus cross-builds through CMake without extra setup. **Tested** on Apple Silicon: `lipo -info` shows `x86_64 arm64` for both binaries, `minos 11.0` on both slices; the x86_64 slice run under Rosetta (`arch -x86_64`) lists an indexed archive identically to the arm64 slice, and the x86_64 GUI starts. Not run on a real Intel Mac. Build time is about 2.5 min for both targets. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Builds aarch64-apple-darwin and x86_64-apple-darwin (deployment target
macOS 11) and joins the GUI and CLI with lipo. Without the flag the script
builds for the host as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:02:38 +00:00
github manually merged commit 685a510928 into gh-pr/5/base 2026-11-26 20:02:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.