[Interest] Deploying Qt to MacOs still...errr, sucks?

René J.V. Bertin rjvbertin at gmail.com
Wed Feb 11 15:44:57 CET 2015


On Wednesday February 11 2015 14:08:20 Mike Krus wrote:

I just noticed the following comment in the CMakeLists.txt file for CMake's own Qt app ...

  # We need to install Cocoa platform plugin and add qt.conf for Qt5 on Mac.
  # FIXME: This should be part of Qt5 CMake scripts, but unfortunatelly
  # Qt5 Mac support is missing there.


> And build a nice dmg…

To kick in an open door: if you have everything in a single "distribution" folder, this command will take care of things:

%> hdiutil create -srcfolder "${SRC}" -volname "${NAME}" -format UDZO -imagekey zlib-level=9 -o "${DMG}" "$@"

That's a bare-bones dmg, though. For a fancier looking one, I find it easier to keep a RW image where I just modify changed contents. Adnd exactly like that, btw: I don't copy whole app bundles, but the Contents folder contained therein (by script or by hand). I suppose that fools the Finder into thinking the app didn't change, and so it's less likely to mess up the layout I set up.
Once done, I simply convert the RW image to a RO, compressed one, which is a procedure that creates a new image and leaves my RW image untouched.

R.



More information about the Interest mailing list