diff options
Diffstat (limited to 'macos')
-rwxr-xr-x | macos/make_macos_package.sh | 12 |
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 |