diff options
| author | srdusr <[email protected]> | 2024-03-25 20:09:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2024-03-25 20:09:00 +0200 |
| commit | 0ea49730db789f60349d49187fee2896a947646d (patch) | |
| tree | ff1309a93bfc9f7a0440aff4dfcee088d1009433 /scripts/install_deps_macos.sh | |
| parent | 1e1dc93c21a0ba994830bc463c3af1d3ac169fbb (diff) | |
| download | srdwm-0ea49730db789f60349d49187fee2896a947646d.tar.gz srdwm-0ea49730db789f60349d49187fee2896a947646d.zip | |
Initial Commit
Diffstat (limited to 'scripts/install_deps_macos.sh')
| -rw-r--r-- | scripts/install_deps_macos.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/install_deps_macos.sh b/scripts/install_deps_macos.sh new file mode 100644 index 0000000..a341cf2 --- /dev/null +++ b/scripts/install_deps_macos.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Ensure Command Line Tools +if ! xcode-select -p >/dev/null 2>&1; then + xcode-select --install || true +fi + +# Install Homebrew if missing +if ! command -v brew >/dev/null 2>&1; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +fi + +brew update +brew install cmake ninja lua pkg-config git + +echo "Dependencies installed." |