macOS build: Replace + sign in DMG file name with underscore

This commit is contained in:
Philipp Wolfer
2019-11-13 14:17:53 +01:00
parent f943876d32
commit 5767a21d0a

View File

@@ -77,7 +77,7 @@ LIBDISCID_REGEX="libdiscid [0-9]+\.[0-9]+\.[0-9]+"
"MusicBrainz Picard.app/Contents/MacOS/fpcalc" -version
# Package app bundle into DMG image
DMG="MusicBrainz Picard $VERSION macOS $MACOS_VERSION_MAJOR.$MACOS_VERSION_MINOR.dmg"
DMG="MusicBrainz Picard ${VERSION/+/_} macOS $MACOS_VERSION_MAJOR.$MACOS_VERSION_MINOR.dmg"
hdiutil create -volname "MusicBrainz Picard $VERSION" \
-srcfolder 'MusicBrainz Picard.app' -ov -format UDBZ "$DMG"
[ "$CODESIGN" = '1' ] && codesign --verify --verbose \