LyX build for Mac - use HFS+ compression for copying LyX.app to disk image

This commit is contained in:
Stephan Witt 2017-04-14 22:15:50 +02:00
parent 6b54f646c6
commit 1d7af1c6c1

View File

@ -950,14 +950,14 @@ make_dmg() {
VOLUME=$(mount |grep ${DEVICE} | cut -f 3 -d ' ')
# copy in the application bundle
cp -Rp "${LyxAppDir}.app" "${VOLUME}/${LyxName}.app"
ditto --hfsCompression "${LyxAppDir}.app" "${VOLUME}/${LyxName}.app"
# copy in background image
mkdir -p "${VOLUME}/Pictures"
cp "${DmgBackground}" "${VOLUME}/Pictures/background.png"
ditto --hfsCompression "${DmgBackground}" "${VOLUME}/Pictures/background.png"
# symlink applications
ln -s /Applications/ "${VOLUME}"/Applications
test -d "${DocumentationDir}" && cp -r "${DocumentationDir}" "${VOLUME}"
test -d "${DocumentationDir}" && ditto --hfsCompression "${DocumentationDir}" "${VOLUME}"
set_bundle_display_options "${VOLUME}" ${BG_W} ${BG_H}
${XCODE_DEVELOPER}/Tools/SetFile -a C "${VOLUME}"
mv "${VOLUME}/Pictures" "${VOLUME}/.Pictures"