Add svg icon support into the appimage

- Add missing packages in Dockerfile to support svg icons.
- Include needed plugins in the appimage.
This commit is contained in:
Matthieu Gautier 2018-08-03 15:18:58 +02:00
parent 0d3ea8eaa5
commit afc6bf0907
2 changed files with 4 additions and 2 deletions

View File

@ -28,8 +28,8 @@ wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/lin
chmod a+x linuxdeployqt-continuous-x86_64.AppImage chmod a+x linuxdeployqt-continuous-x86_64.AppImage
# Fill with all deps libs and so # Fill with all deps libs and so
./linuxdeployqt-continuous-x86_64.AppImage $APPDIR/usr/bin/kiwix-desktop -verbose=3 -bundle-non-qt-libs ./linuxdeployqt-continuous-x86_64.AppImage $APPDIR/usr/bin/kiwix-desktop -verbose=3 -bundle-non-qt-libs -extra-plugins=imageformats,iconengines
# Fix the RPATH of QtWebEngineProcess [TODO] Fill a issue ? # Fix the RPATH of QtWebEngineProcess [TODO] Fill a issue ?
patchelf --set-rpath '$ORIGIN/../lib' $APPDIR/usr/libexec/QtWebEngineProcess patchelf --set-rpath '$ORIGIN/../lib' $APPDIR/usr/libexec/QtWebEngineProcess
# Build the image. # Build the image.
./linuxdeployqt-continuous-x86_64.AppImage $APPDIR/usr/share/applications/kiwix.desktop -verbose=3 -bundle-non-qt-libs -appimage ./linuxdeployqt-continuous-x86_64.AppImage $APPDIR/usr/share/applications/kiwix.desktop -verbose=3 -bundle-non-qt-libs -extra-plugins=imageformats,iconengines -appimage

View File

@ -37,6 +37,8 @@ RUN \
libqt5gui5 \ libqt5gui5 \
qtbase5-dev \ qtbase5-dev \
qtwebengine5-dev \ qtwebengine5-dev \
libqt5svg5-dev \
qt5-image-formats-plugins \
qt5-default \ qt5-default \
# To create the appimage of kiwix-desktop # To create the appimage of kiwix-desktop
libfuse2 \ libfuse2 \