Files
jellyfin-desktop/dev/macos/setup.sh
T

36 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env sh
# Jellyfin Desktop - macOS dependency installer
# Run once to install all build dependencies
set -eu
SCRIPT_DIR="$(cd "$(dirname "${0}")" && pwd)"
. "${SCRIPT_DIR}/common.sh"
echo "[1/4] Checking Xcode Command Line Tools..."
if ! xcode-select -p > /dev/null 2>&1; then
echo "Installing Xcode Command Line Tools..."
xcode-select --install
echo "Please re-run this script after installation completes"
exit 0
fi
echo "[2/4] Checking Homebrew..."
if ! command -v brew > /dev/null; then
echo "error: Homebrew not found. Install from https://brew.sh" >&2
exit 1
fi
echo "[3/4] Installing build tools..."
brew install aqtinstall mpv ninja cmake create-dmg
echo "[4/4] Installing Qt ${QT_VERSION}..."
if [ ! -d "${DEPS_DIR}/qt/${QT_VERSION}/macos" ]; then
mkdir -p "${DEPS_DIR}/qt"
(cd "${DEPS_DIR}" && aqt install-qt mac desktop "${QT_VERSION}" -m qtwebengine qtwebchannel qtpositioning -O "qt")
else
echo "Qt already installed, skipping"
fi
echo ""
echo "Setup complete. Run build.sh to build."