aboutsummaryrefslogtreecommitdiff
path: root/macos
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-21 09:35:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-21 09:35:59 -0800
commit2c4fac6102d25a85dbf2acb0c14234776cf7737c (patch)
tree78452d010d451b1bc2652c17f275974c12ae3f84 /macos
parentfda4426883a2e80899a9dea613910a803ccc4be0 (diff)
downloadpandoc-2c4fac6102d25a85dbf2acb0c14234776cf7737c.tar.gz
Create zip for macOS package.
Diffstat (limited to 'macos')
-rwxr-xr-xmacos/make_macos_package.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/macos/make_macos_package.sh b/macos/make_macos_package.sh
index 4dd746a7c..4b565b0de 100755
--- a/macos/make_macos_package.sh
+++ b/macos/make_macos_package.sh
@@ -1,6 +1,7 @@
#!/bin/bash -e
LOCALBIN=$HOME/.local/bin
+BASEDIR=`pwd`
DIST=`pwd`/macos_package
MACOS=`pwd`/macos
RESOURCES=$DIST/Resources
@@ -70,5 +71,16 @@ productbuild --distribution $MACOS/distribution.xml --resources $DIST/Resources
# verify signature
spctl --assess --type install $BASE-macOS.pkg
+echo "Created $BASE-macOS.pkg"
+
+# create zip
+cd $DEST
+cd ..
+mv local $BASE
+zip -r $BASEDIR/$BASE-macOS.zip $BASE
+cd $BASEDIR
+
+echo "Created $BASE-macOS.zip"
+
# cleanup
rm -r $DIST