#!/bin/bash

echo "---start 2c-audio plug-in setup core post install script---"
echo ""

auth_file_path="/Library/Application Support/2C-Audio/Breeze/Res/auth.prop"
aeplg_prop_file_path="/Library/Application Support/2C-Audio/Breeze/Props/breeze.prop"
audplg_file_path="/Library/Application Support/2C-Audio/Breeze/Props/audplg.prop"

# change permissions to read and write to all

echo $auth_file_path
echo ""

echo $aeplg_prop_file_path
echo ""

echo $audplg_file_path
echo ""

chmod a+rw "$auth_file_path"

chmod a+rw "$aeplg_prop_file_path"

chmod a+rw "$audplg_file_path"

# remove demo (if any)

rm -r "/Library/Application Support/2C-Audio/Breeze-Demo"
rm -r "/Library/Audio/Plug-Ins/Components/2C-Breeze-Demo.component"
rm -r "/Library/Audio/Plug-Ins/VST/2C-Breeze-Demo.vst"
rm -r "/Library/Application Support/Digidesign/Plug-Ins/2C-Breeze-Demo.dpm"

echo ""
echo "---end 2c-audio plug-in setup main post-install script---"

exit 0