Add macosx package script

This commit is contained in:
falkTX 2020-06-15 01:04:58 +02:00
parent 9f035df3d4
commit 21169219cf
4 changed files with 79 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,8 +1,11 @@
build/
man/*.1
.lock*
.stamp_*
.DS_Store
__pycache__
*.pyc
*.pkg
android/.server/
android/.client/
codeBlocks

47
macosx/generate-pkg.sh Executable file
View File

@ -0,0 +1,47 @@
#!/bin/bash
set -e
cd $(dirname ${0})
# ---------------------------------------------------------------------------------------------------------------------
installed_prefix="${1}"
if [ -z "${installed_prefix}" ]; then
echo "usage: ${0} <installed_prefix>"
exit 1
fi
# ---------------------------------------------------------------------------------------------------------------------
VERSION=$(cat ../wscript | awk 'sub("VERSION=","")' | tr -d "'")
#rm -f jack2-osx-root.pkg
rm -f jack2-osx-${VERSION}.pkg
rm -f package.xml
# ---------------------------------------------------------------------------------------------------------------------
#pkgbuild \
# --identifier org.jackaudio.jack2 \
# --install-location "/usr/local/" \
# --root "${installed_prefix}/" \
# jack2-osx-root.pkg
# ---------------------------------------------------------------------------------------------------------------------
# https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
sed -e "s|@CURDIR@|${PWD}|" package.xml.in > package.xml
productbuild \
--distribution package.xml \
--identifier org.jackaudio.jack2 \
--package-path "${PWD}" \
--version ${VERSION} \
jack2-osx-${VERSION}.pkg
rm package.xml
# ---------------------------------------------------------------------------------------------------------------------

View File

@ -0,0 +1,10 @@
JACK2 is a low-latency audio server for multi-processor machines.
It provides a basic infrastructure for audio applications to communicate with each other and with audio hardware.
Through JACK, users are enabled to build powerful systems for signal processing and music production.
This package installs jackd and the command-line tools for JACK2.
It also includes the necessary files for developers to build with JACK support.
The previously packaged JackRouter plugin is not available at this point.

19
macosx/package.xml.in Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
<title>JACK2</title>
<!--
<background file="@CURDIR@/package-background.png" mime-type="image/png" alignment="bottomleft" scaling="proportional" />
<background-darkAqua file="@CURDIR@/package-background.png" mime-type="image/png" alignment="bottomleft" scaling="proportional" />
-->
<choice id="org.jackaudio.jack2" title="JACK2" visible="false">
<pkg-ref id="org.jackaudio.jack2">jack2-osx-root.pkg</pkg-ref>
</choice>
<choices-outline>
<line choice="org.jackaudio.jack2"/>
</choices-outline>
<domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
<license file="@CURDIR@/../COPYING" mime-type="text/plain" />
<options customize="never" hostArchitectures="x86_64" require-scripts="false"/>
<pkg-ref id="org.jackaudio.jack2">jack2-osx-root.pkg</pkg-ref>
<welcome file="@CURDIR@/package-welcome.txt" mime-type="text/plain" />
</installer-gui-script>