Mercurial > hg > sonic-visualiser
comparison deploy/linux/deploy-appimage.sh @ 1909:12b96d6b1d66
Toward getting appimage build working in Docker
author | Chris Cannam |
---|---|
date | Fri, 29 Jun 2018 10:31:17 +0100 |
parents | abddb04d2bf3 |
children | 61ef30fb141c |
comparison
equal
deleted
inserted
replaced
1908:abddb04d2bf3 | 1909:12b96d6b1d66 |
---|---|
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" | 80 qtplugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen xcb" |
81 qtlibdirs="$QTDIR /usr/lib/x86_64-linux-gnu/qt5 /usr/lib/x86_64-linux-gnu/qt /usr/lib/qt5 /usr/lib/qt" | 81 qtlibdirs="/usr/lib/x86_64-linux-gnu/qt5 /usr/lib/x86_64-linux-gnu/qt /usr/lib/qt5 /usr/lib/qt" |
82 | |
83 QTDIR=${QTDIR:-} | |
84 if [ -n "$QTDIR" ]; then | |
85 qtlibdirs="$QTDIR $qtlibdirs" | |
86 fi | |
82 | 87 |
83 for plug in $qtplugins; do | 88 for plug in $qtplugins; do |
84 for libdir in $qtlibdirs; do | 89 for libdir in $qtlibdirs; do |
85 lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) | 90 lib=$(find $libdir/plugins -name libq$plug.so -print 2>/dev/null || true) |
86 if [ -n "$lib" ]; then | 91 if [ -n "$lib" ]; then |
100 cp "icons/sv-icon.svg" "$targetdir/" | 105 cp "icons/sv-icon.svg" "$targetdir/" |
101 | 106 |
102 cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun" | 107 cp sv-dependency-builds/linux/appimage/AppRun-x86_64 "$targetdir/AppRun" |
103 chmod +x "$targetdir/AppRun" | 108 chmod +x "$targetdir/AppRun" |
104 | 109 |
105 ARCH=x86_64 sv-dependency-builds/linux/appimage/appimagetool-x86_64.AppImage "$targetdir" "SonicVisualiser-$version-x86_64.AppImage" | 110 # Do this with a separate extraction step, so as to make it work even |
111 # in situations where FUSE is unavailable like in a Docker container | |
112 export ARCH=x86_64 | |
113 sv-dependency-builds/linux/appimage/appimagetool-x86_64.AppImage --appimage-extract | |
114 ./squashfs-root/AppRun "$targetdir" "SonicVisualiser-$version-x86_64.AppImage" | |
106 | 115 |