From c784ff6925209f56a04c7ec40506beadc2e6eec0 Mon Sep 17 00:00:00 2001 From: Stern Date: Fri, 8 Nov 2024 23:56:27 -0500 Subject: [PATCH] chore: We need to add Homebrew to our path or Xcode will not find it. Signed-off-by: Stern --- Dependencies/fetch-prebuilt.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dependencies/fetch-prebuilt.sh b/Dependencies/fetch-prebuilt.sh index 65c15a6a..44a6a011 100644 --- a/Dependencies/fetch-prebuilt.sh +++ b/Dependencies/fetch-prebuilt.sh @@ -3,6 +3,13 @@ # Ensure we are in Dependencies directory cd "$(dirname "$0")" +# Detect if Homebrew is in /opt/homebrew (Apple Silicon) or /usr/local (Intel) +if [[ -d "/opt/homebrew" ]]; then + export PATH="/opt/homebrew/bin:$PATH" +elif [[ -d "/usr/local" ]]; then + export PATH="/usr/local/bin:$PATH" +fi + # Check if wget and curl are installed; if not, install them via Homebrew if ! command -v wget &> /dev/null; then echo "wget not found, attempting to install via Homebrew..."