From aeb4402a5482c6d4e7219604fadbb08d683bbe51 Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Sun, 13 Nov 2022 13:51:37 -0800 Subject: [PATCH] Resize the DMG before populating it --- Installer/OSX/dmg/make-dmg.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Installer/OSX/dmg/make-dmg.sh b/Installer/OSX/dmg/make-dmg.sh index 1fb993ae7..0258977ce 100755 --- a/Installer/OSX/dmg/make-dmg.sh +++ b/Installer/OSX/dmg/make-dmg.sh @@ -61,11 +61,6 @@ cp -r $SRC "Duplicati.app/Contents/MacOS" echo Patching "$SCRIPTDIR/Info.plist" PLIST=$(cat "$SCRIPTDIR/Info.plist") PLIST=${PLIST//!LONG_VERSION!/${VERSION_NUMBER}} - -echo PATCHED BEGIN -echo "${PLIST}" -echo PATCHED END - echo "${PLIST}" > "Duplicati.app/Contents/Info.plist" cp "$SCRIPTDIR/Duplicati.icns" "Duplicati.app/Contents/Resources" @@ -96,6 +91,7 @@ fi # Make a mount point and mount the new dmg mkdir -p "$WC_DIR" +hdiutil resize -size 300M "$WC_DMG" hdiutil attach "$WC_DMG" -noautoopen -quiet -mountpoint "$WC_DIR" # Change the dmg name