jack2 codebase
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.

48 lines
1.4KB

  1. #!/bin/bash
  2. set -e
  3. cd $(dirname ${0})
  4. # ---------------------------------------------------------------------------------------------------------------------
  5. installed_prefix="${1}"
  6. if [ -z "${installed_prefix}" ]; then
  7. echo "usage: ${0} <installed_prefix>"
  8. exit 1
  9. fi
  10. # ---------------------------------------------------------------------------------------------------------------------
  11. VERSION=$(cat ../wscript | awk 'sub("VERSION=","")' | tr -d "'")
  12. rm -f jack2-osx-root.pkg
  13. rm -f jack2-osx-${VERSION}.pkg
  14. rm -f package.xml
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. pkgbuild \
  17. --identifier org.jackaudio.jack2 \
  18. --install-location "/usr/local/" \
  19. --root "${installed_prefix}/" \
  20. jack2-osx-root.pkg
  21. # ---------------------------------------------------------------------------------------------------------------------
  22. # https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
  23. sed -e "s|@CURDIR@|${PWD}|" package.xml.in > package.xml
  24. productbuild \
  25. --distribution package.xml \
  26. --identifier org.jackaudio.jack2 \
  27. --package-path "${PWD}" \
  28. --version ${VERSION} \
  29. jack2-osx-${VERSION}.pkg
  30. rm package.xml
  31. # ---------------------------------------------------------------------------------------------------------------------