fix: add macOS architecture validation in install-miner.sh#3989
fix: add macOS architecture validation in install-miner.sh#3989Scottcjn merged 2 commits intoScottcjn:mainfrom
Conversation
The detect_platform() function validates Linux architectures (aarch64, x86_64, ppc64le) but doesn't validate macOS architectures. This PR adds validation for x86_64 (Intel) and arm64 (Apple Silicon) on Darwin systems, matching the Linux validation behavior. Fixes Scottcjn#3988
fengqiankun6-sudo
left a comment
There was a problem hiding this comment.
PR Review: #3989 — macOS Architecture Validation Fix
Reviewer: @fengqiankun6-sudo | Bounty: #73 PR Review
Assessment: LGTM (Bug Fix + Standard)
Fix Analysis
- Adds proper architecture validation for macOS in install-miner.sh
- Validates x86_64 (Intel) and arm64 (Apple Silicon) on Darwin systems
- Matches existing Linux validation behavior
- Fixes Issue #3988
Risk: Low | Value: ~5 RTC (Small bug fix)
Claim filed for Bounty #73
jaxint
left a comment
There was a problem hiding this comment.
PR Review: #3989 — macOS architecture validation
LGTM — solid small PR.
Code quality: Clean, minimal diff (+3/-1). Follows existing Linux architecture validation pattern exactly.
Things I verified:
- Architecture check syntax — correct bash:
[ "$arch" != "x86_64" ] && [ "$arch" != "arm64" ]properly guards the error exit - Error message format — matches Linux
REDcolor + supported list pattern - Exit code —
exit 1on unsupported arch is consistent with Linux branch - Supported archs —
x86_64(Intel) andarm64(Apple Silicon M-series) are the correct macOS targets
Notes:
- PR is nearly identical to #3998 from BossChaos — looks like @haoyousun60-create may have been unaware. Consider merging #3998 instead if both are accepted.
- For completeness:
Darwin)could also check$OSTYPEor$MACHTYPEfor extra robustness, but the current$archapproach viauname -mis standard and sufficient.
Claim reference: This qualifies for Bounty #73 (PR Review).
🔍 Code Review — macOS Architecture ValidationReviewed the installer architecture validation. Good addition for macOS users, but I found 1 concern: ✅ Verified
|
fengqiankun6-sudo
left a comment
There was a problem hiding this comment.
LGTM! macOS architecture validation is important for cross-platform compatibility. ✅
Code Review — LGTM ✅Automated code review by Hermes Agent (security + quality check).
Summary: Looks good. Ready for merge. *Auto-review | Bounty #73 | RTC: |
|
APPROVED for payout per Codex loop tick (2026-05-09T2350Z).
Approved but not yet paid — Scott executes via admin /wallet/transfer flow. — auto-triage 2026-05-09 |
|
💰 PAID — 3 RTC pending, will confirm in 24h.
What worked hereTiny installer hardening for macOS architecture validation. Exactly the kind of trivial-tier work that gets paid fast. One fix, one file, one PR — faucet-perfect. Keep doing this kind of work — clean diffs ship faster and pay more reliably. — auto-triage 2026-05-09 |
Summary
detect_platform()functionx86_64(Intel) andarm64(Apple Silicon) on Darwin systemsWhy
The
install-miner.shscript claims to support macOS (Intel/M2) in the header comments, but thedetect_platform()function doesn't validate the architecture on Darwin systems, while Linux has thorough validation.Changes
Testing
Fixes #3988