Don't hardcode pandoc version in osx/distribution.xml.
Instead, create it from a template, distribution.xml.in.
commit128409f387bad63de4496ac5f8f2f697edf0092f
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 19 Mar 2016, 18:53 (11 years ago)
parent06bfac1
make_osx_package.sh+2
@@ -61,6 +61,8 @@ echo Creating OSX package...
6161# remove old package first
6262rm -rf $BASE.pkg
6363
64+sed -e "s/PANDOCVERSION/$VERSION/" osx/distribution.xml.in > osx/distribution.xml
65+
6466pkgbuild --root $DIST/pandoc --identifier net.johnmacfarlane.pandoc --version 1.13 --ownership recommended $DIST/pandoc.pkg
6567productbuild --distribution osx/distribution.xml --resources $DIST/Resources --package-path $DIST --version $VERSION --sign "${DEVELOPER_ID_INSTALLER}" $BASE-osx.pkg
6668
osx/distribution.xml → osx/distribution.xml.inrenamed+1−1
@@ -11,7 +11,7 @@
1111 <options hostArchitectures="x86_64" />
1212 <!-- List all component packages -->
1313 <pkg-ref id="net.johnmacfarlane.pandoc"
14− version="1.17"
14+ version="PANDOCVERSION"
1515 auth="root">pandoc.pkg</pkg-ref>
1616 <!-- List them again here. They can now be organized
1717 as a hierarchy if you want. -->