diff --git a/sv-studio-icon.png b/sv-studio-icon.png new file mode 100644 index 0000000..bf60afd Binary files /dev/null and b/sv-studio-icon.png differ diff --git a/sv2linuxinstaller.sh b/sv2linuxinstaller.sh new file mode 100755 index 0000000..48a260b --- /dev/null +++ b/sv2linuxinstaller.sh @@ -0,0 +1,75 @@ +#!/bin/bash +echo "Starting Synthesizer V Studio 2 Pro Linux Installer. For VST support, wine 9.21 staging is recommended." + +# Checking if everything we need is installed +if ! [ -x "$(command -v wine)" ]; then + echo 'Error: Wine is not installed.' >&2 + exit 1 +fi +if ! [ -x "$(command -v winetricks)" ]; then + echo 'Error: Winetricks is not installed.' >&2 + exit 1 +fi +if ! [ -x "$(command -v yabridgectl)" ]; then + echo 'Error: Yabridgectl is not installed, vst support wont work.' >&2 +fi +echo 'Passed dependency checks' + +# Lets set the wineprefix path +read -p "Please enter the location you would like to install Synthesizer V Studio (default ~/synth-v2/): " wineprefix_path +wineprefix_path=${wineprefix_path:-~/synth-v2/} +wineprefix_path="${wineprefix_path/#\~/$HOME}" +echo "Install path: $wineprefix_path" +mkdir -p "$wineprefix_path" +if [ ! -d "$wineprefix_path" ]; then + echo "Error: Could not create $wineprefix_path." >&2 + exit 1 +fi + + +# Download Edge Webview and SV2 +curl -L -o MicrosoftEdgeWebview2Setup.exe https://go.microsoft.com/fwlink/p/?LinkId=2124703 +curl -L -o svstudio2-pro-setup-latest.exe https://download.dreamtonics.com/svstudio2/svstudio2-pro-setup-latest.exe + +# Install Synthesizer V Studio 2 Pro +WINEPREFIX="$wineprefix_path" wineboot > /dev/null 2>&1 | echo "Wineboot Complete" +WINEPREFIX="$wineprefix_path" winetricks dxvk > /dev/null 2>&1 | echo "DXVK Installed" +WINEPREFIX="$wineprefix_path" winetricks -q win10 > /dev/null 2>&1 | echo "Changed to Windows 10" +WINEPREFIX="$wineprefix_path" wine MicrosoftEdgeWebview2Setup.exe >/dev/null 2>&1 | echo "Edge Webview Installing..." +WINEPREFIX="$wineprefix_path" wine svstudio2-pro-setup-latest.exe > /dev/null 2>&1 | echo "SV2 Installing..." +WINEPREFIX="$wineprefix_path" wineserver -k > /dev/null 2>&1 | echo "Wine Server Stopped" +WINEPREFIX="$wineprefix_path" winetricks -q win7 > /dev/null 2>&1 | echo "Changed to Windows 7" +echo "" +echo "Writing Login Script at ${wineprefix_path}/synth_v_login.sh" +echo "" +cat > $wineprefix_path/synth_v_login.sh < ~/.local/share/applications/synthv.desktop < /dev/null 2>&1 | echo "Converting VST for Linux..." +yabridgectl sync > /dev/null 2>&1 + +echo "" +echo "Trickiest part, you should have a working installation right now, when you click log in, your browser will ask you what application to open the link with. A script called synth_v_login.sh has been created in your wineprefix, tell your browser to use this script." +sleep 5 +echo "" +echo "Launching Synthesizer V Studio 2 Pro..." +WINEPREFIX="$wineprefix_path" wine "C:\Program Files\Synthesizer V Studio 2 Pro\synthv-studio.exe" > /dev/null 2>&1 + +echo "" +echo "Completed, you may use Synthesizer V Studio 2 Pro standalone or the VST might work in your DAW of choice, it should be in your VST3 folder." +exit 0