comparison 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
comparison
equal deleted inserted replaced
1903:d2ee0bde1705 1905:9bd1dea5f412
45 sed 's/^.*=> //' | sed 's/ .*$//'); do 45 sed 's/^.*=> //' | sed 's/ .*$//'); do
46 46
47 base=$(basename "$lib") 47 base=$(basename "$lib")
48 if grep -v '^#' sv-dependency-builds/linux/appimage/excludelist | 48 if grep -v '^#' sv-dependency-builds/linux/appimage/excludelist |
49 grep -q "^$base$" ; then 49 grep -q "^$base$" ; then
50 echo "excluding: $lib" 50 # echo "excluding: $lib"
51 continue 51 continue
52 fi 52 fi
53 53
54 mkdir -p "$targetdir/$(dirname $lib)" 54 mkdir -p "$targetdir/$(dirname $lib)"
55 55
75 75
76 add_dependencies "$program" 76 add_dependencies "$program"
77 77
78 cp -v "$targetdir/usr/local/lib/"* "$targetdir/usr/lib/" 78 cp -v "$targetdir/usr/local/lib/"* "$targetdir/usr/lib/"
79 79
80 qtplugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen xcb"
81 qtlibdirs="/usr/lib/x86_64-linux-gnu/qt5 /usr/lib/x86_64-linux-gnu/qt /usr/lib/qt5 /usr/lib/qt"
82
83 for plug in $qtplugins; do
84 for libdir in $qtlibdirs; do
85 lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true)
86 if [ -n "$lib" ]; then
87 if [ -f "$lib" ]; then
88 mkdir -p "$targetdir/$(dirname $lib)"
89 cp -v "$lib" "$targetdir/$lib"
90 chmod +x "$targetdir/$lib"
91 add_dependencies "$lib"
92 break
93 fi
94 fi
95 done
96 done
97
80 cp "$program.desktop" "$targetdir/" 98 cp "$program.desktop" "$targetdir/"
81 99
82 cp "icons/sv-icon.svg" "$targetdir/" 100 cp "icons/sv-icon.svg" "$targetdir/"
83 101
84 cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun" 102 cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun"