Vocal Gate

#!/bin/bash
set -e
DEPS="libxinerama-dev \
libxext-dev \
libfreetype-dev \
libwebkit2gtk-4.1-dev \
libglu1-mesa-dev \
libxcursor-dev"
source <(curl -sSL https://estudio-debian.pages.dev/functions.lib)
install_deb
script() {
git clone -b linuxinstaller https://github.com/dan-k-k/vocal-gate
cd vocal-gate
TARGET="$(curl -sSL https://api.github.com/repos/microsoft/onnxruntime/releases | grep browser_download_url | grep download | grep -v gpu | grep '1.24.2' | grep linux-x64 | head -n1 | cut -d '"' -f4)"
download
tar -xzf onnxruntime-linux-x64-*.tgz
mkdir -p plugin/onnxruntime/{lib,include}
cp onnxruntime-linux-x64-*/lib/libonnxruntime.so* plugin/onnxruntime/lib/
cp -R onnxruntime-linux-x64-*/include/* plugin/onnxruntime/include/
cmake -B build -S plugin -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target VocalGate_VST3 --parallel 4
}
tmprun script