-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a04ed4c
commit b191218
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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." |