#!/bin/bash
set -e

# Create resources directory if it doesn't exist
mkdir -p resources

# Download FFmpeg for macOS
curl -L https://evermeet.cx/ffmpeg/ffmpeg-6.1.zip -o ffmpeg.zip

# Extract FFmpeg
unzip -o ffmpeg.zip -d resources/
rm ffmpeg.zip

# Make FFmpeg executable
chmod +x resources/ffmpeg

echo "FFmpeg has been downloaded and prepared successfully"
