Files
WhisperLive/scripts/setup.sh
T
2025-05-29 17:44:39 +01:00

21 lines
549 B
Bash

#! /bin/bash
# Detect the operating system
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
echo "Detected macOS, using Homebrew for installation"
# Check if Homebrew is installed
if ! command -v brew &> /dev/null; then
echo "Homebrew not found. Please install Homebrew first: https://brew.sh/"
exit 1
fi
# Install packages using Homebrew
brew install portaudio wget
else
# Linux (Debian/Ubuntu)
echo "Detected Linux, using apt-get for installation"
apt-get install portaudio19-dev wget -y
fi