Resize the DMG before populating it

This commit is contained in:
Thomas Suckow
2022-11-13 13:51:37 -08:00
parent 2e2da4fde7
commit aeb4402a54
+1 -5
View File
@@ -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