Commit 1587c6a7 authored by Don Gagne's avatar Don Gagne

Deploy qml modules

Also fix problem with incorrect symbolic link to plugins
parent ce34727a
......@@ -19,8 +19,14 @@
installer {
MacBuild {
QMAKE_POST_LINK += && $$dirname(QMAKE_QMAKE)/macdeployqt $${DESTDIR}/qgroundcontrol.app
QMAKE_POST_LINK += && hdiutil create -layout SPUD -srcfolder $${DESTDIR}/qgroundcontrol.app -volname QGroundControl $${DESTDIR}/qgroundcontrol.dmg
# 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 .
QMAKE_POST_LINK += && $$dirname(QMAKE_QMAKE)/macdeployqt qgroundcontrol.app -verbose=2 -qmldir=src -dmg
QMAKE_POST_LINK += && rm -rf qgroundcontrol.app
QMAKE_POST_LINK += && mv qgroundcontrol.dmg release
}
WindowsBuild {
......
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