Create zip for macOS package.
This commit is contained in:
parent
fda4426883
commit
2c4fac6102
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue