notube-export/macos/notube-macos-install.sh

31 lines
740 B
Bash

#!/bin/bash
# Check if Homebrew is installed
if ! command -v brew &> /dev/null
then
echo "Homebrew not found. Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Homebrew is already installed."
fi
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
# Install FFmpeg
if ! command -v ffmpeg &> /dev/null
then
echo "FFmpeg not found. Installing FFmpeg..."
brew install ffmpeg
else
echo "FFmpeg is already installed."
fi
# Install yt-dlp
if ! command -v yt-dlp &> /dev/null
then
echo "yt-dlp not found. Installing yt-dlp..."
brew install yt-dlp
else
echo "yt-dlp is already installed."
fi