Skip to content

Commit

Permalink
Added example installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhealey committed Jun 11, 2019
1 parent a04ed4c commit b191218
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

PLUGIN_NAME="Sofia Woodwinds.so"
STANDALONE_NAME="Sofia Woodwinds"

read -r -p "Would you like to install the plugin? " install_plugin

if [[ "$install_plugin" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
echo "Please enter the location to install the plugin file."
read plugin_path

until [ -d "$plugin_path" ]; do
echo "The entered path does not exist. Please enter a different path."
read plugin_path
done

cp -i "$PLUGIN_NAME" "$plugin_path"
else
echo "The plugin will not be installed"
fi

read -r -p "Would you like to install standalone application? " install_standalone

if [[ "$install_standalone" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
echo "Please enter the location to install the standalone version."
read standalone_path

until [ -d "$standalone_path" ]; do
echo "The entered path does not exist. Please enter a different path."
read standalone_path
done

cp -i "$STANDALONE_NAME" "$standalone_path"
cp -i "License.txt" "$standalone_path"
cp -i "Icon.png" "$standalone_path"
else
echo "The standalone application will not be installed"
fi

echo "The software installation is complete. Please launch the plugin or standalone version and click Install Samples when prompted to install the instrument samples."

0 comments on commit b191218

Please sign in to comment.