setup.sh: support Fedora

This commit is contained in:
Aaron Boxer
2026-01-29 12:05:20 -05:00
committed by Aaron Boxer
parent c6ee9a6870
commit b9ae2af8e6
2 changed files with 28 additions and 6 deletions
+17 -5
View File
@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash
# Detect the operating system
if [[ "$OSTYPE" == "darwin"* ]]; then
@@ -13,8 +13,20 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
# Install packages using Homebrew
brew install portaudio wget
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
if [[ -f /etc/os-release ]]; then
source /etc/os-release
fi
if [[ "${ID:-}" == "fedora" ]]; then
echo "Detected Fedora, using dnf for installation"
dnf install -y portaudio-devel wget
else
echo "Detected Linux (assuming Debian/Ubuntu), using apt-get for installation"
apt-get install -y portaudio19-dev wget
fi
else
# Linux (Debian/Ubuntu)
echo "Detected Linux, using apt-get for installation"
apt-get install portaudio19-dev wget -y
fi
echo "Unsupported operating system: $OSTYPE"
exit 1
fi