mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-236332 Use ULFO format for DMG to reduce decompression time
GitOrigin-RevId: 54bdad8fc86ac3098b135c742aa74d894a79aef9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d23c99dca3
commit
c838dd4efb
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user