diff --git a/QGCInstaller.pri b/QGCInstaller.pri index 010d4ad8dbe51a106e267aa2507deb863cff4a62..b69e7290b20bd48a1f62ea3bc8a2a2cfcebcd71b 100644 --- a/QGCInstaller.pri +++ b/QGCInstaller.pri @@ -19,15 +19,12 @@ installer { MacBuild { - # We copy qgroundcontrol.app to the current directory so we can run macdeployqt without a path to the - # qgroundcontrol.app file. If you specify a path to the .app file the symbolic links to plugins will not - # be created correctly. - QMAKE_POST_LINK += && rm -rf qgroundcontrol.app - QMAKE_POST_LINK += && cp -r $${DESTDIR}/qgroundcontrol.app . + # We cd to release directory so we can run macdeployqt without a path to the + # qgroundcontrol.app file. If you specify a path to the .app file the symbolic + # links to plugins will not be created correctly. + QMAKE_POST_LINK += && cd release QMAKE_POST_LINK += && $$dirname(QMAKE_QMAKE)/macdeployqt qgroundcontrol.app -verbose=2 -qmldir=src -dmg - QMAKE_POST_LINK += && rm -rf qgroundcontrol.app - QMAKE_POST_LINK += && cp qgroundcontrol.dmg release - QMAKE_POST_LINK += && rm -rf qgroundcontrol.dmg + QMAKE_POST_LINK += && cd .. } WindowsBuild {