diff options
Diffstat (limited to 'scripts/project_init.sh')
| -rwxr-xr-x | scripts/project_init.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/project_init.sh b/scripts/project_init.sh index 549e146..5a6ac28 100755 --- a/scripts/project_init.sh +++ b/scripts/project_init.sh @@ -24,16 +24,18 @@ else echo "glfw3webgpu already present." fi -# Check for wgpu-native (system install) +# Check for brew dependencies (macOS) if command -v brew >/dev/null 2>&1; then - if ! brew list wgpu-native >/dev/null 2>&1; then - echo "Warning: wgpu-native not found via brew. Installing..." - brew install wgpu-native - else - echo "wgpu-native found (via brew)." - fi + for pkg in wgpu-native glfw; do + if ! brew list "$pkg" >/dev/null 2>&1; then + echo "Warning: $pkg not found via brew. Installing..." + brew install "$pkg" + else + echo "$pkg found (via brew)." + fi + done else - echo "Warning: Homebrew not found. Ensure wgpu-native is installed manually." + echo "Warning: Homebrew not found. Ensure wgpu-native and glfw are installed manually." fi echo "Done." |
