Create zip for macOS package.

This commit is contained in:
John MacFarlane 2017-11-21 09:35:59 -08:00
parent fda4426883
commit 2c4fac6102

View file

@ -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