Mercurial > hg > sonic-visualiser
diff deploy/linux/deploy-appimage.sh @ 1905:9bd1dea5f412 appimage
Qt plugins
author | Chris Cannam |
---|---|
date | Thu, 28 Jun 2018 18:42:45 +0100 |
parents | d2ee0bde1705 |
children | abddb04d2bf3 |
line wrap: on
line diff
--- a/deploy/linux/deploy-appimage.sh Thu Jun 28 15:31:32 2018 +0100 +++ b/deploy/linux/deploy-appimage.sh Thu Jun 28 18:42:45 2018 +0100 @@ -47,7 +47,7 @@ base=$(basename "$lib") if grep -v '^#' sv-dependency-builds/linux/appimage/excludelist | grep -q "^$base$" ; then - echo "excluding: $lib" +# echo "excluding: $lib" continue fi @@ -77,6 +77,24 @@ cp -v "$targetdir/usr/local/lib/"* "$targetdir/usr/lib/" +qtplugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen xcb" +qtlibdirs="/usr/lib/x86_64-linux-gnu/qt5 /usr/lib/x86_64-linux-gnu/qt /usr/lib/qt5 /usr/lib/qt" + +for plug in $qtplugins; do + for libdir in $qtlibdirs; do + lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) + if [ -n "$lib" ]; then + if [ -f "$lib" ]; then + mkdir -p "$targetdir/$(dirname $lib)" + cp -v "$lib" "$targetdir/$lib" + chmod +x "$targetdir/$lib" + add_dependencies "$lib" + break + fi + fi + done +done + cp "$program.desktop" "$targetdir/" cp "icons/sv-icon.svg" "$targetdir/"