DISTRHO Plugin Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4KB

  1. #!/bin/bash
  2. set -e
  3. # --------------------------------------------------------------------------------------------------------------------------------
  4. # extract debs and pack them
  5. function compressFolderAsZip() {
  6. rm -f "$1.zip"
  7. zip -X -r "$1" "$1"
  8. rm -r "$1"
  9. }
  10. # --------------------------------------------------------------------------------------------------------------------------------
  11. if [ "$1" == "" ]; then
  12. echo Missing argument
  13. exit
  14. fi
  15. # --------------------------------------------------------------------------------------------------------------------------------
  16. cd bin
  17. mkdir -p tmp
  18. rm -rf tmp/*
  19. NAME="$1"
  20. _mingw32-build make -C .. clean
  21. _mingw32-build make -C ..
  22. for i in `ls *-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done
  23. rm -rf *ladspa* *dssi* *vst*
  24. mkdir -p "$NAME-win32bit"
  25. mv *.dll *.lv2/ "$NAME-win32bit"
  26. cp "../dpf/utils/README-DPF-Windows.txt" "$NAME-win32bit/README.txt"
  27. compressFolderAsZip "$NAME-win32bit"
  28. rm -rf tmp/*
  29. _mingw64-build make -C .. clean
  30. _mingw64-build make -C ..
  31. for i in `ls *-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done
  32. rm -rf *ladspa* *dssi* *vst*
  33. mkdir -p "$NAME-win64bit"
  34. mv *.dll *.lv2/ "$NAME-win64bit"
  35. cp "../dpf/utils/README-DPF-Windows.txt" "$NAME-win64bit/README.txt"
  36. compressFolderAsZip "$NAME-win64bit"
  37. rm -rf tmp/*
  38. _mingw64-build make -C .. clean
  39. cd ..
  40. # --------------------------------------------------------------------------------------------------------------------------------