X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=scripts%2Fbuild%2Fmacosx_makePackage.sh;h=e9342dd53a4a5efa5aefba825766860f2aef7a87;hp=a359ecd12c824f24606b2ecb036fe60e3bed2a13;hb=28eb43dd1ccd882b2975c346297842c1dc074469;hpb=f09a86ab1cc01a80aa6fd52a875920e18d1d3a5b diff --git a/scripts/build/macosx_makePackage.sh b/scripts/build/macosx_makePackage.sh index a359ecd1..e9342dd5 100755 --- a/scripts/build/macosx_makePackage.sh +++ b/scripts/build/macosx_makePackage.sh @@ -87,6 +87,14 @@ esac echo "Creating macOS disk image with hdiutil: 'Quassel ${BUILDTYPE} - ${QUASSEL_VERSION}'" +# Modern macOS versions support APFS, however default to HFS+ for now in order +# to ensure old macOS versions can parse the package and display the warning +# about being out of date. This mirrors the approach taken by Qt's macdeployqt +# tool. In the future if this isn't needed, just remove "-fs HFS+" to revert +# to default. +# +# See https://doc.qt.io/qt-5/macos-deployment.html + # hdiutil seems to have a bit of a reputation for failing to create disk images # for various reasons. # @@ -105,7 +113,7 @@ echo "Creating macOS disk image with hdiutil: 'Quassel ${BUILDTYPE} - ${QUASSEL_ # # Option 1: -hdiutil create -srcfolder ${PACKAGETMPDIR} -format UDBZ -volname "Quassel ${BUILDTYPE} - ${QUASSEL_VERSION}" "${WORKINGDIR}${QUASSEL_DMG}" >/dev/null +hdiutil create -srcfolder ${PACKAGETMPDIR} -format UDBZ -fs HFS+ -volname "Quassel ${BUILDTYPE} - ${QUASSEL_VERSION}" "${WORKINGDIR}${QUASSEL_DMG}" >/dev/null # If hdiutil changes over time and fails often, you can try the other option. # @@ -114,7 +122,7 @@ hdiutil create -srcfolder ${PACKAGETMPDIR} -format UDBZ -volname "Quassel ${BUIL #PACKAGESIZE_MARGIN="1.1" #PACKAGESIZE=$(echo "$(du -ms ${PACKAGETMPDIR} | cut -f1) * $PACKAGESIZE_MARGIN" | bc) #echo "PACKAGESIZE: $PACKAGESIZE MB" -#hdiutil create -srcfolder ${PACKAGETMPDIR} -format UDBZ -size ${PACKAGESIZE}M -volname "Quassel ${BUILDTYPE} - ${QUASSEL_VERSION}" "${WORKINGDIR}${QUASSEL_DMG}" >/dev/null +#hdiutil create -srcfolder ${PACKAGETMPDIR} -format UDBZ -fs HFS+ -size ${PACKAGESIZE}M -volname "Quassel ${BUILDTYPE} - ${QUASSEL_VERSION}" "${WORKINGDIR}${QUASSEL_DMG}" >/dev/null # Regardless of choice, clean up the packaging temporary directory