mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
chore: We need to add Homebrew to our path or Xcode will not find it.
Signed-off-by: Stern <stern@sidestore.io>
This commit is contained in:
7
Dependencies/fetch-prebuilt.sh
vendored
7
Dependencies/fetch-prebuilt.sh
vendored
@@ -3,6 +3,13 @@
|
|||||||
# Ensure we are in Dependencies directory
|
# Ensure we are in Dependencies directory
|
||||||
cd "$(dirname "$0")"
|
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
|
# Check if wget and curl are installed; if not, install them via Homebrew
|
||||||
if ! command -v wget &> /dev/null; then
|
if ! command -v wget &> /dev/null; then
|
||||||
echo "wget not found, attempting to install via Homebrew..."
|
echo "wget not found, attempting to install via Homebrew..."
|
||||||
|
|||||||
Reference in New Issue
Block a user