From 2c4fac6102d25a85dbf2acb0c14234776cf7737c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 21 Nov 2017 09:35:59 -0800 Subject: Create zip for macOS package. --- macos/make_macos_package.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'macos') 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 -- cgit v1.2.3