diff --git a/QGCPostLinkInstaller.pri b/QGCPostLinkInstaller.pri index b2a275056e630197ada8d006f3931a9308bee09a..6e223208f780eba016c5cdb623e0084929c09f2c 100644 --- a/QGCPostLinkInstaller.pri +++ b/QGCPostLinkInstaller.pri @@ -14,7 +14,7 @@ installer { MacBuild { QMAKE_POST_LINK += && mkdir -p staging - QMAKE_POST_LINK += && cp -r $${TARGET}.app staging # fixme rsync instead + QMAKE_POST_LINK += && rsync -a --delete $${TARGET}.app staging VideoEnabled { # Install the gstreamer framework diff --git a/tools/prepare_gstreamer_framework.sh b/tools/prepare_gstreamer_framework.sh index 6589e46bb0573800091ad7ed3fa9fe2b18e51098..f59f4c93bbd7ff8bc5296e17dbe4b457d4f034f6 100755 --- a/tools/prepare_gstreamer_framework.sh +++ b/tools/prepare_gstreamer_framework.sh @@ -75,7 +75,7 @@ echo "GST Installer: Copying $GST_SOURCE to $BUNDLE_TARGET/Contents/Frameworks/" rsync -a --delete $GST_SOURCE $BUNDLE_TARGET/Contents/Frameworks/ || die "Error copying framework into app bundle" #-- The plugin scanner needs to find the GStreamer libraries GSTINBUNDLE=$BUNDLE_TARGET/Contents/Frameworks/GStreamer.framework/Versions/$GST_VER -pushd $GSTINBUNDLE/libexec && ln -sf ../../../../Frameworks . && popd || die "Error creating Frameworks symlink in $GST_TARGET/libexec" +pushd $GSTINBUNDLE/libexec && ln -sf ../../../../../Frameworks . && popd || die "Error creating Frameworks symlink in $GST_TARGET/libexec" #-- Fix main binary install_name_tool -change /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer @executable_path/../Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer "$QGC_BINARY" > /dev/null || die "Error relocating $QGC_BINARY" pushd $GSTINBUNDLE && install_name_tool -id @executable_path/../Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer GStreamer && popd || die "Error relocating GStreamer"