openclaw/apps/macos/Sources
Rocuts c0d3eee83b fix(install): guard against Rosetta trap on Apple Silicon AI Assisted
## Description
This PR fixes installation instability on Apple Silicon (M1/M2/M3) Macs caused by the "Rosetta Trap".
The Problem:
When a terminal runs under Rosetta, scripts using `uname -m` incorrectly detect Intel. This leads to wrong binary downloads and Homebrew path issues.
The Fix:
1. scripts/postinstall.js: Added check for sysctl.proc_translated.
2. apps/macos/.../CLIInstaller.swift: Added native Swift guard.
3. scripts/check-env.sh: Added diagnostic utility.
## AI/Vibe-Coded 🤖
- [x] AI-Assisted: Marked in title/description.
- [x] Testing Level: Fully Tested (Verified on M1 environment with check-env.sh).
- [x] Transparency: Prompts derived from installation_debugging.md analysis.
- [x] I understand what this code does
2026-01-26 12:06:09 -05:00
..
Clawdbot fix(install): guard against Rosetta trap on Apple Silicon AI Assisted 2026-01-26 12:06:09 -05:00
ClawdbotDiscovery fix: shorten bonjour gateway service type 2026-01-20 15:10:06 +00:00
ClawdbotIPC style(macos): fix swiftformat lint 2026-01-20 16:19:37 +00:00
ClawdbotMacCLI fix: macOS auto bind loopback-first 2026-01-22 06:35:59 +00:00
ClawdbotProtocol fix: regenerate protocol models 2026-01-25 01:12:49 +00:00