Proteus

Guitar amp and pedal capture plugin using neural networks
Log | Files | Refs | Submodules | README

build_deb.sh (1193B)


      1 #!/bin/bash
      2 # This script builds a .deb package for installing the VST3, and LV2 plugins on Linux
      3 
      4 # Set the app name and version here
      5 app_name=Proteus
      6 version=1.2
      7 
      8 
      9 # 1. Create the package directory structure and control file
     10 
     11 mkdir -p $app_name"/DEBIAN"
     12 
     13 printf "Package: $app_name\n\
     14 Version: $version\n\
     15 Section: custom\n\
     16 Priority: optional\n\
     17 Architecture: all\n\
     18 Essential: no\n\
     19 Installed-Size: 16480128\n\
     20 Maintainer: GuitarML\n\
     21 Description: GuitarML Plugin Debian Package (VST3, LV2)\n" > $app_name"/DEBIAN/control"
     22 
     23 
     24 # 2. Copy Standalone, VST3, and LV2 plugins to the package directory (assumes project is already built)
     25 
     26 mkdir -p $app_name/usr/local/lib/vst3/
     27 echo "Copying ../../build/"$app_name"_artefacts/Release/VST3/"$app_name".vst3"
     28 cp -r "../../build/"$app_name"_artefacts/Release/VST3/"$app_name".vst3" $app_name"/usr/local/lib/vst3/"
     29 
     30 mkdir -p $app_name/usr/local/lib/lv2/
     31 echo "Copying ../../build/"$app_name"_artefacts/Release/LV2/"$app_name".lv2"
     32 cp -r "../../build/"$app_name"_artefacts/Release/LV2/"$app_name".lv2" $app_name"/usr/local/lib/lv2/"
     33 
     34 
     35 # 3. Build the .deb package and rename
     36 
     37 dpkg-deb --build $app_name
     38 
     39 mv $app_name.deb $app_name-Linux-x64-$version.deb