From c838dd4efbd00629f2a5874f336a324a04a8c141 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 30 Mar 2020 18:52:10 +0300 Subject: [PATCH] IDEA-236332 Use ULFO format for DMG to reduce decompression time GitOrigin-RevId: 54bdad8fc86ac3098b135c742aa74d894a79aef9 --- platform/build-scripts/tools/mac/scripts/create-dmg.sh | 6 ++++-- platform/build-scripts/tools/mac/scripts/makedmg.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/build-scripts/tools/mac/scripts/create-dmg.sh b/platform/build-scripts/tools/mac/scripts/create-dmg.sh index 7e703fdcfa8c..ae5860ca1298 100644 --- a/platform/build-scripts/tools/mac/scripts/create-dmg.sh +++ b/platform/build-scripts/tools/mac/scripts/create-dmg.sh @@ -69,7 +69,7 @@ function usage() { echo " --no-internet-enable" echo " disable automatic mount©" echo " --format" - echo " specify the final image format (default is UDZO)" + echo " specify the final image format (default is ULFO)" echo " --add-file target_name file|folder x y" echo " add additional file or folder (can be used multiple times)" echo " --disk-image-size x" @@ -93,7 +93,7 @@ WINW=500 WINH=350 ICON_SIZE=128 TEXT_SIZE=16 -FORMAT="UDZO" +FORMAT="ULFO" ADD_FILE_SOURCES=() ADD_FILE_TARGETS=() IMAGEKEY="" @@ -189,6 +189,8 @@ while test "${1:0:1}" = "-"; do IMAGEKEY="-imagekey zlib-level=9";; UDBZ) IMAGEKEY="-imagekey bzip2-level=9";; + ULFO) + IMAGEKEY="-imagekey lzfse-level=9";; esac done diff --git a/platform/build-scripts/tools/mac/scripts/makedmg.sh b/platform/build-scripts/tools/mac/scripts/makedmg.sh index fc2e4f6d16e3..abddb5516d47 100644 --- a/platform/build-scripts/tools/mac/scripts/makedmg.sh +++ b/platform/build-scripts/tools/mac/scripts/makedmg.sh @@ -84,7 +84,7 @@ sync;sync;sync hdiutil detach "$device" log "Compressing r/w disk image to ${RESULT_DMG}..." -hdiutil convert "$TEMP_DMG" -quiet -format UDZO -imagekey zlib-level=9 -o "$RESULT_DMG" +hdiutil convert "$TEMP_DMG" -quiet -format ULFO -imagekey lzfse-level=9 -o "$RESULT_DMG" rm -f "$TEMP_DMG" hdiutil internet-enable -no "$RESULT_DMG"