From c556903f7571e9f533dc016a97f2189767058c70 Mon Sep 17 00:00:00 2001 From: Mitch Curtis <mitch.curtis@qt.io> Date: Tue, 8 Jan 2019 10:46:18 +0100 Subject: [PATCH] macdeployqt: document how to affect the volume name Change-Id: Ie617fe25a33928719f290844c1533b16bf2431f0 Reviewed-by: Paul Wicking <paul.wicking@qt.io> --- doc/src/platforms/macos.qdoc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/src/platforms/macos.qdoc b/doc/src/platforms/macos.qdoc index 6d071942..db4039d5 100644 --- a/doc/src/platforms/macos.qdoc +++ b/doc/src/platforms/macos.qdoc @@ -1226,5 +1226,37 @@ default, \c macdeployqt uses the older HFS+ file system for compatibility with all versions of macOS currently supported by Qt. Use the \c{-fs} option to specify a different file system. + + \section1 Volume Name + + The volume name of a disk image (the text displayed in the window title of + an opened \c .dmg file) created with \c -dmg is based on the path to the + application when \c macdeployqt is run. For example, consider the following + command that creates a disk image for a Qt Quick application: + + \badcode + macdeployqt /Users/foo/myapp-build/MyApp.app -qmldir=/Users/foo/myapp/qml -dmg + \endcode + + The resulting volume name will be: + + \badcode + /Users/foo/myapp-build/MyApp.app + \endcode + + To ensure that the volume name only contains the application name and not + the path on the deployment machine, run \c macdeployqt in the same + directory: + + \badcode + cd /Users/foo/myapp-build + macdeployqt MyApp.app -qmldir=/Users/foo/myapp/qml -dmg + \endcode + + The resulting volume name will then be: + + \badcode + MyApp.app + \endcode */ -- GitLab