From 08e66942927a5d7445838f26ebd768df925fd7ba Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Wed, 7 Feb 2018 09:41:29 -0800 Subject: [PATCH] Fix package generation package directory was showing up in dmg file --- QGCInstaller.pri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGCInstaller.pri b/QGCInstaller.pri index f3ba9bc22..443ca699e 100644 --- a/QGCInstaller.pri +++ b/QGCInstaller.pri @@ -26,12 +26,12 @@ installer { # 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 += && mkdir -p $${DESTDIR}/package QMAKE_POST_LINK += && cd $${DESTDIR} && $$dirname(QMAKE_QMAKE)/macdeployqt $${TARGET}.app -appstore-compliant -verbose=2 -qmldir=$${BASEDIR}/src # macdeploy is missing some relocations once in a while. "Fix" it: QMAKE_POST_LINK += && python $$BASEDIR/tools/osxrelocator.py $${TARGET}.app/Contents @rpath @executable_path/../Frameworks -r > /dev/null 2>&1 # Create package QMAKE_POST_LINK += && hdiutil create /tmp/tmp.dmg -ov -volname "$${TARGET}-$${MAC_VERSION}" -fs HFS+ -srcfolder "$${DESTDIR}/" + QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package QMAKE_POST_LINK += && hdiutil convert /tmp/tmp.dmg -format UDBZ -o $${DESTDIR}/package/$${TARGET}.dmg QMAKE_POST_LINK += && rm /tmp/tmp.dmg } -- 2.22.0