Skip to content

Commit 3ae5559

Browse files
committed
Updated build scripts
1 parent 8d93388 commit 3ae5559

File tree

4 files changed

+72
-79
lines changed

4 files changed

+72
-79
lines changed

Packaging/GNU/GNUInstaller.sh

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
#!/bin/bash
2-
3-
PLUGIN_NAME="Sofia Woodwinds.so"
4-
STANDALONE_NAME="Sofia Woodwinds"
5-
6-
read -r -p "Would you like to install the plugin? " install_plugin
7-
8-
if [[ "$install_plugin" =~ ^([yY][eE][sS]|[yY])+$ ]]
9-
then
10-
echo "Please enter the location to install the plugin file."
11-
read plugin_path
12-
13-
until [ -d "$plugin_path" ]; do
14-
echo "The entered path does not exist. Please enter a different path."
15-
read plugin_path
16-
done
17-
18-
cp -i "$PLUGIN_NAME" "$plugin_path"
19-
else
20-
echo "The plugin will not be installed"
21-
fi
22-
23-
read -r -p "Would you like to install standalone application? " install_standalone
24-
25-
if [[ "$install_standalone" =~ ^([yY][eE][sS]|[yY])+$ ]]
26-
then
27-
echo "Please enter the location to install the standalone version."
28-
read standalone_path
29-
30-
until [ -d "$standalone_path" ]; do
31-
echo "The entered path does not exist. Please enter a different path."
32-
read standalone_path
33-
done
34-
35-
cp -i "$STANDALONE_NAME" "$standalone_path"
36-
cp -i "License.txt" "$standalone_path"
37-
else
38-
echo "The standalone application will not be installed"
39-
fi
40-
41-
echo "The software installation is complete. Please launch the plugin or standalone version and click Install Samples when prompted to install the instrument samples."
1+
#!/bin/bash
2+
3+
PLUGIN_NAME="Sofia Woodwinds.so"
4+
STANDALONE_NAME="Sofia Woodwinds"
5+
6+
read -r -p "Would you like to install the plugin? " install_plugin
7+
8+
if [[ "$install_plugin" =~ ^([yY][eE][sS]|[yY])+$ ]]
9+
then
10+
echo "Please enter the location to install the plugin file."
11+
read plugin_path
12+
13+
until [ -d "$plugin_path" ]; do
14+
echo "The entered path does not exist. Please enter a different path."
15+
read plugin_path
16+
done
17+
18+
cp -i "$PLUGIN_NAME" "$plugin_path"
19+
else
20+
echo "The plugin will not be installed"
21+
fi
22+
23+
read -r -p "Would you like to install standalone application? " install_standalone
24+
25+
if [[ "$install_standalone" =~ ^([yY][eE][sS]|[yY])+$ ]]
26+
then
27+
echo "Please enter the location to install the standalone version."
28+
read standalone_path
29+
30+
until [ -d "$standalone_path" ]; do
31+
echo "The entered path does not exist. Please enter a different path."
32+
read standalone_path
33+
done
34+
35+
cp -i "$STANDALONE_NAME" "$standalone_path"
36+
cp -i "License.txt" "$standalone_path"
37+
else
38+
echo "The standalone application will not be installed"
39+
fi
40+
41+
echo "The software installation is complete. Please launch the plugin or standalone version and click Install Samples when prompted to install the instrument samples."

Packaging/GNU/build_gnu.sh

+26-30
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ version=1.1.1
55
xmlFile=sofiaWoodwinds
66
workspace=/media/john/SHARED/HISEProjects/sofiawoodwinds
77

8-
clean_project=1
9-
build_plugin=1
108
build_standalone=0
11-
build_installer=0
9+
build_plugin=0
10+
build_installer=1
1211

1312
hise_path=/media/john/SHARED/HISE/projects/standalone/Builds/LinuxMakefile/build/HISE\ Standalone
1413
projucer_path=/media/john/SHARED/HISE/tools/projucer/Projucer
15-
makeself_path=/media/john/SHARED/makeself
14+
makeself=/media/john/SHARED/makeself
15+
16+
#Create temp directory for packaging
17+
package="$workspace"/Packaging/GNU/temp
18+
mkdir -p "$package"
1619

1720
cd "$workspace"/Binaries
1821

@@ -24,28 +27,27 @@ then
2427
"$hise_path" set_project_folder -p:$workspace
2528
"$hise_path" set_version -v:$version
2629

27-
if (($clean_project == 1))
28-
then
29-
"$hise_path" clean -p:$workspace --all
30-
fi
31-
3230
echo Making the Projucer accessible for this project
3331
chmod +x "$projucer_path"
34-
35-
if (($build_plugin==1))
32+
33+
if (($build_standalone==1))
3634
then
37-
echo Building the plugins
38-
"$hise_path" export_ci XmlPresetBackups/$xmlFile.xml -t:instrument -p:VST -a:x64
35+
echo Building the standalone app
36+
"$hise_path" clean -p:$workspace --all
37+
"$hise_path" export_ci XmlPresetBackups/$xmlFile.xml -t:standalone -a:x64
3938
chmod +x "$workspace"/Binaries/batchCompileLinux.sh
4039
sh "$workspace"/Binaries/batchCompileLinux.sh
40+
cp "$workspace"/Binaries/Builds/LinuxMakefile/build/"$project" "$package"
4141
fi
4242

43-
if (($build_standalone==1))
43+
if (($build_plugin==1))
4444
then
45-
echo Building the standalone app
46-
"$hise_path" export_ci XmlPresetBackups/$xmlFile.xml -t:standalone -a:x64
45+
echo Building the plugins
46+
"$hise_path" clean -p:$workspace --all
47+
"$hise_path" export_ci XmlPresetBackups/$xmlFile.xml -t:instrument -p:VST -a:x64
4748
chmod +x "$workspace"/Binaries/batchCompileLinux.sh
4849
sh "$workspace"/Binaries/batchCompileLinux.sh
50+
cp "$workspace"/Binaries/Builds/LinuxMakefile/build/"$project".so "$package"
4951
fi
5052
fi
5153

@@ -55,23 +57,17 @@ fi
5557
if (($build_installer==1))
5658
then
5759
echo "Build Installer"
58-
59-
#Create installer directory and copy temp files into it
60-
mkdir -p "$workspace"/Installer/temp
61-
cp "$workspace"/Binaries/Builds/LinuxMakefile/build/"$project" "$workspace"/Installer/temp
62-
cp "$workspace"/Binaries/Builds/LinuxMakefile/build/"$project".so "$workspace"/Installer/temp
63-
cp "$workspace"/License.txt "$workspace"/Installer/temp
64-
cp "$workspace"/Packaging/GNU/GNUInstaller.sh "$workspace"/Installer/temp
65-
66-
cd "$workspace"/Installer/
60+
61+
cp "$workspace"/License.txt "$package"
62+
cp "$workspace"/Packaging/GNU/GNUInstaller.sh "$package"
6763

6864
#Run makeself
69-
sh "$makeself_path"/makeself.sh --license License.txt "$workspace"/Installer/temp "$workspace"/Installer/"$project".$version.installer.sh "$project" ./GNUInstaller.sh
70-
71-
echo Cleanup
72-
cd "$workspace"
73-
rm -rf "$workspace"/Installer/temp
65+
sh "$makeself"/makeself.sh --license "$workspace"/License.txt "$workspace"/Packaging/GNU/temp "$workspace"/Installer/"$project"\ $version.sh "$project" ./GNUInstaller.sh
7466

7567
else
7668
echo "Skip Building Installer"
7769
fi
70+
71+
echo Cleanup
72+
cd "$workspace"
73+
rm -rf "$workspace"/Packaging/GNU/temp

Packaging/OSX/._build_mac.sh

0 Bytes
Binary file not shown.

Packaging/OSX/build_mac.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ version=1.1.1
55
xmlFile=sofiaWoodwinds
66
workspace=/Volumes/SHARED/HISEProjects/sofiawoodwinds
77

8-
build_standalone=1
9-
build_plugin=1
8+
build_standalone=0
9+
build_plugin=0
1010
build_installer=1
1111
clean_project=0
1212

@@ -53,15 +53,12 @@ fi
5353
if (($build_installer==1))
5454
then
5555
echo "Build Installer"
56+
mkdir -p "$workspace"/Installer
5657
$PACKAGES_BUILD "Packaging/OSX/$project.pkgproj"
57-
installer_name=./$project\ "$version".pkg
58-
productsign --sign "$APPLE_CERTIFICATE_ID_INSTALLER" "./Installer/$project.pkg" "$installer_name"
58+
cp "$workspace"/Packaging/OSX/build/"$project".pkg "$workspace"/Installer/"$project"\ "$version".pkg
5959

6060
echo "Cleanup"
61-
mkdir -p "$workspace"/Installer
62-
cp "$workspace"/Packaging/OSX/build/"$project".pkg "$workspace"/Installer
6361
rm -rf "$workspace"/Packaging/OSX/build
64-
65-
else
62+
else
6663
echo "Skip Building Installer"
6764
fi

0 commit comments

Comments
 (0)