Last active
August 27, 2015 07:11
-
-
Save calum-github/cdcdad77554b53c36c88 to your computer and use it in GitHub Desktop.
postinstall for captivate 9 package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ########################################################################### | |
| # Postinstall script to install Adobe Captivate 9 an addtional components # | |
| # Author: Calum Hunter # | |
| # Date: 27-08-2015 # | |
| # Version: 1.0 # | |
| ########################################################################### | |
| # Set current directory name | |
| install_dir=`dirname $0` | |
| # Set the location of the install binaries for Voices and Assets | |
| voices_install="$install_dir/Voices/Install.app/Contents/MacOS/install" | |
| assets_install="$install_dir/Assets/Install.app/Contents/MacOS/install" | |
| # Set the location of the deploy files | |
| voices_deploy="$install_dir/Voices/deploy.xml" | |
| assets_deploy="$install_dir/Assets/deploy.xml" | |
| # Set the location of the installSourcePaths | |
| voices_source_path="$install_dir/Voices" | |
| assets_source_path="$install_dir/Assets" | |
| # Now modify the installSourcePath key to have the correct path from this package working dir | |
| sed -i '' "s:REPLACEME:$voices_source_path:" $voices_deploy | |
| sed -i '' "s:REPLACEME:$assets_source_path:" $assets_deploy | |
| # Install Captivate | |
| /usr/sbin/installer -dumplog -verbose -pkg $install_dir/AdobeCaptivate9_Install.pkg -target "$3" | |
| # Install NeoSpeech Voices | |
| $voices_install --mode=silent --deploymentFile=$voices_deploy | |
| # Install eLearning Assets | |
| $assets_install --mode=silent --deploymentFile=$assets_deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment