Commit ccb0a1bf authored by Daniel Molkentin's avatar Daniel Molkentin Committed by Eike Ziller
Browse files

Add make dmg target

Change-Id: I643d571afbb7b16f860092c885e3574268f91ddf
Reviewed-by: default avatarEike Ziller <>
parent 3d39451b
......@@ -25,6 +25,8 @@ macx {
deployqt.depends = default
bindist.commands = 7z a -mx9 $$OUT_PWD/qtcreator$(INSTALL_POSTFIX).7z "$$OUT_PWD/bin/Qt"
dmg.commands = $$PWD/scripts/ $$OUT_PWD/bin qt-creator$(INSTALL_POSTFIX).dmg
} else {
deployqt.commands = $$PWD/scripts/ -i $(INSTALL_ROOT)
win32:deployqt.commands ~= s,/,\\\\,g
[ $# -lt 2 ] && echo "Usage: $(basename $0) <folder> <name.dmg>" && exit 2
[ $(uname -s) != "Darwin" ] && echo "Run this script on Mac OS X" && exit 2;
intermediateFolder=$(mktemp -d "/tmp/packagedir.XXXXX")
title="Qt Creator"
echo Preparing image artifacts...
cp -a "${sourceFolder}/" "${intermediateFolder}"
ln -s /Applications "${intermediateFolder}"
cp "$(dirname "${BASH_SOURCE[0]}")/../LICENSE.LGPL" "${intermediateFolder}/LICENSE_LGPL.txt"
echo Creating image...
hdiutil create -srcfolder "${intermediateFolder}" -volname "${title}" -format UDBZ "${finalDMGName}" -ov -scrub
# clean up
rm -rf "${intermediateFolder}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment