Use different names for the 10.6 (thin) and 10.9 (universal) DMG files.
authorCarl Hetherington <cth@carlh.net>
Mon, 7 Feb 2022 14:47:31 +0000 (15:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 7 Feb 2022 20:55:35 +0000 (21:55 +0100)
platform/osx/make_dmg.sh

index 18ca029f5ce0be2a7923ca27892c6454c1ef6726..b33dd8a43565abc1f03c72614d10cb3a331bdb52 100644 (file)
@@ -321,8 +321,12 @@ function make_dmg {
     local pkg="$2"
     local full_name="$3"
     local exes="$4"
-    tmp_dmg=dcpomatic_tmp.dmg
-    dmg="$full_name $version.dmg"
+       tmp_dmg=dcpomatic_tmp.dmg
+       if [ "$ARCH2" == "" ]; then
+               dmg="$full_name $version macOS10.8+.dmg"
+       else
+               dmg="$full_name $version macOS10.10+.dmg"
+       fi
     vol_name=DCP-o-matic-$version
 
        find "$appdir/Contents/Frameworks" -iname "*.dylib" -type f -print0 | while IFS= read -r -d '' f; do