#!/bin/bash
#####################################################################################################################
# Description : This script installs all the necessary files (libraries, firmwares, udev, include) on Linux machine. 
# Written by  : Jan Soldan (astrosoft@email.cz)
# Version     : 1.03
# Date        : 11/2017
#####################################################################################################################

# install firmware



mkdir -p /Applications
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns
mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns

cp -a Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/libQHYCCDX2Plugin* /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns

cp -a Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns/QHYCCD.ui /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/PlugIns/CameraPlugIns

mkdir -p /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/Miscellaneous\ Files

cp -a Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/Miscellaneous\ Files/cameralist\ QHYCCD.txt /Applications/TheSkyX\ Professional\ Edition.app/Contents/Resources/Common/Miscellaneous\ Files


