forked from GuitarML/NeuralPi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
validate.sh
41 lines (35 loc) · 1.33 KB
/
validate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# install functions
install_pluginval_linux()
{
curl -L "https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Linux.zip" -o pluginval.zip
unzip pluginval > /dev/null
echo "./pluginval"
}
install_pluginval_mac()
{
curl -L "https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_macOS.zip" -o pluginval.zip
unzip pluginval > /dev/null
echo "pluginval.app/Contents/MacOS/pluginval"
}
install_pluginval_win()
{
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Windows.zip -OutFile pluginval.zip"
powershell -Command "Expand-Archive pluginval.zip -DestinationPath ."
echo "./pluginval.exe"
}
# install
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
pluginval=$(install_pluginval_linux)
plugin="build/NeuralPi_artefacts/Release/VST3/NeuralPi.vst3"
elif [[ "$OSTYPE" == "darwin"* ]]; then
pluginval=$(install_pluginval_mac)
plugin="build/NeuralPi_artefacts/VST3/NeuralPi.vst3"
fi
echo "Pluginval installed at ${pluginval}"
echo "Validating ${plugin}"
$pluginval --strictness-level 8 --validate-in-process --validate $plugin --timeout-ms 600000
result=$?
# clean up
rm -Rf pluginval*
exit $result