#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo "Installing MicDrop..."

# Install Desktop App
mkdir -p ~/Applications
cp -R "$DIR/MicDrop Desktop.app" ~/Applications/
echo "✅ Installed MicDrop Desktop to ~/Applications"

# Install VST3 Plugin
mkdir -p ~/Library/Audio/Plug-Ins/VST3
cp -R "$DIR/Plugins/MicDrop.vst3" ~/Library/Audio/Plug-Ins/VST3/
echo "✅ Installed MicDrop VST3 to ~/Library/Audio/Plug-Ins/VST3"

echo ""
echo "Installation complete!"
echo "Next steps:"
echo "1. Launch MicDrop Desktop from your Applications folder."
echo "2. Open FL Studio and rescan plugins."
echo "3. Load the MicDrop VST3 plugin."
echo "4. Enable Accessibility permissions for MicDrop Desktop in System Settings."
