mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(install): skip Homebrew until macOS packages need it
Keep macOS Homebrew setup lazy so users with supported Node and Git can install without admin/Homebrew, while still installing Homebrew before macOS Node or Git package installs. Updates installer docs and adds focused install.sh coverage for the lazy Git path. Also aligns the live-media provider expectation with current main so built-artifact checks stay green. Fixes #83232 Co-authored-by: Sebastien Tardif <sebtardif@ncf.ca>
This commit is contained in:
+4
-4
@@ -1914,6 +1914,7 @@ require_sudo() {
|
||||
|
||||
install_git() {
|
||||
if [[ "$OS" == "macos" ]]; then
|
||||
install_homebrew
|
||||
run_quiet_step "Installing Git" brew install git
|
||||
elif [[ "$OS" == "linux" ]]; then
|
||||
require_sudo
|
||||
@@ -3100,12 +3101,11 @@ main() {
|
||||
|
||||
ui_stage "Preparing environment"
|
||||
|
||||
# Step 1: Homebrew (macOS only)
|
||||
install_homebrew
|
||||
|
||||
# Step 2: Node.js
|
||||
# Step 1: Node.js. macOS package-manager branches install Homebrew lazily
|
||||
# only when they are about to call brew.
|
||||
load_nvm_for_node_detection
|
||||
if ! check_node; then
|
||||
install_homebrew
|
||||
install_node
|
||||
fi
|
||||
activate_supported_node_on_path || true
|
||||
|
||||
Reference in New Issue
Block a user