#!/bin/bash set -e DIR="$(dirname "${BASH_SOURCE[0]}")" cp "$DIR/bigpack.zpx" bigpack.zip > /dev/null || (echo "bigpack.zpx not found in this directory, please make sure that you extarcted archive properly or contact support@motion.land" && exit 1) rm -rf /Library/Application\ Support/Adobe/CEP/extensions/com.motionland.bigpack > /dev/null || (echo "Couldn't remove existing installation, please enter you password to try again with more privileges" && sudo rm -rf /Library/Application\ Support/Adobe/CEP/extensions/com.motionland.bigpack) unzip bigpack.zip -d /Library/Application\ Support/Adobe/CEP/extensions || sudo unzip bigpack.zip -d /Library/Application\ Support/Adobe/CEP/extensions || (echo "Could not unzip the file, please contact support@motion.land" && exit 1) defaults write com.adobe.CSXS.5 PlayerDebugMode 1 defaults write com.adobe.CSXS.6 PlayerDebugMode 1 defaults write com.adobe.CSXS.7 PlayerDebugMode 1 defaults write com.adobe.CSXS.8 PlayerDebugMode 1 killall -u `whoami` cfprefsd rm bigpack.zip sudo chmod -R 777 /Library/Application\ Support/Adobe/CEP/extensions/com.motionland.bigpack/Projects echo "Big Pack installed successfully." echo "Make sure to restart After Effects and relaunch extension!" echo "You can close this window now." command -v osascript >/dev/null 2>&1 && osascript -e "display notification \"Big Pack 1.4 installed successfully\" with title \"Big Pack\"" exit 0