However, while I understand that for normal MITK cases on a Mac you would run "make package", and then CPack would create a DragNDrop installer, I have been running make install, then I have my own script, which bundles up the whole installation folder. The reason is because of problems with /usr/bin/hdiutil as the package is too big for the default arguments. So my script calculates the size of the required disk image, and adds branding images and a few other things. I just tried running "make package", and I got:
Is that something for which we could add a bug report for the BundleUtilities.cmake script?
Yes, probably, effectively what I do is:
Calculate required size of disk image
echo "Calculating required size"
initial_size=du -ks ${EFFECTIVE_ROOT} | awk '{print $1}'
SIZE=$(($initial_size+2000))
echo "Size of directory to mount=${SIZE}k"
Create the disk image
echo "Creating disk image"
hdiutil create -srcfolder "${EFFECTIVE_ROOT}" -volname "${BASE_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW -size ${SIZE}k ${TMP_OUTPUT_DMG}