Fix building a dmg with no code signing identities

This commit is contained in:
Cameron Gutman 2019-08-02 20:40:20 -07:00
parent deab717c73
commit a0967e0281

View File

@ -54,7 +54,16 @@ if [ "$SIGNING_KEY" != "" ]; then
fi
echo Creating DMG
create-dmg $BUILD_FOLDER/app/Moonlight.app $INSTALLER_FOLDER || fail "create-dmg failed!"
if [ "$SIGNING_KEY" != "" ]; then
create-dmg $BUILD_FOLDER/app/Moonlight.app $INSTALLER_FOLDER --identity=$SIGNING_KEY || fail "create-dmg failed!"
else
create-dmg $BUILD_FOLDER/app/Moonlight.app $INSTALLER_FOLDER
case $? in
0) ;;
2) ;;
*) fail "create-dmg failed!";;
esac
fi
if [ "$NOTARY_USERNAME" != "" ] && [ "$NOTARY_PASSWORD" != "" ]; then
echo Uploading to App Notary service