blob: 358e6efc413e5117bd9d448e1ce6b85ef29347ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
# ---------------------------------------------------------------------------------------------------------------------
|