Mercurial > hg > sonic-visualiser
diff deploy/linux/deploy-appimage.sh @ 1920:55241126e0e4
Plugin subdirs
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2018 11:47:06 +0100 |
parents | 61ef30fb141c |
children | 4ec4c1b9d367 |
line wrap: on
line diff
--- a/deploy/linux/deploy-appimage.sh Tue Jul 03 10:45:28 2018 +0100 +++ b/deploy/linux/deploy-appimage.sh Tue Jul 03 11:47:06 2018 +0100 @@ -97,7 +97,11 @@ lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) if [ -n "$lib" ]; then if [ -f "$lib" ]; then - target="$targetdir/usr/lib/qt5/plugins/$(basename $lib)" + subdir=$(basename $(dirname $lib)) + if [ t"$subdir" = t"plugins" ]; then + subdir="" + fi + target="$targetdir/usr/lib/qt5/plugins/$subdir/$(basename $lib)" mkdir -p "$(dirname $target)" cp -v "$lib" "$target" chmod +x "$target"