paulxstretch/release/makepkgdmg.sh

25 lines
584 B
Bash
Raw Normal View History

2022-04-14 14:06:10 +00:00
#!/bin/bash
if [ -z "$1" ] ; then
echo "Usage: $0 <version>"
exit 1
fi
VERSION=$1
MAINNAME="PaulXStretch"
2022-04-14 20:35:12 +00:00
MAINNAMELC="paulxstretch"
2022-04-14 14:06:10 +00:00
rm -f ${MAINNAME}Pkg.dmg
# cp ${MAINNAME}/README_MAC.txt ${MAINNAME}Pkg/
if dropdmg --config-name=${MAINNAME}Pkg --layout-folder ${MAINNAME}PkgLayout --volume-name="${MAINNAME} v${VERSION}" --APP_VERSION=v${VERSION} --signing-identity=C7AF15C3BCF2AD2E5C102B9DB6502CFAE2C8CF3B ${MAINNAME}Pkg
then
mkdir -p ${VERSION}
2022-04-14 20:35:12 +00:00
mv -v ${MAINNAME}Pkg.dmg ${VERSION}/${MAINNAMELC}-${VERSION}-mac.dmg
2022-04-14 14:06:10 +00:00
else
echo "Error making package DMG"
exit 2
fi