mkdir -p $A/usr/bin $A/usr/lib $A/usr/share
cd ./$APP
-. ../contrib/functions.sh
+. $STATIC_FILES/functions.sh
########################################################################
# Get build products from $PREFIX
# Copy desktop and icon file to AppDir for AppRun to pick them up
########################################################################
-cp ../../contrib/pulseview.desktop ../../contrib/sigrok-logo-notext.png .
+cp $STATIC_FILES/pulseview.desktop .
+cp $STATIC_FILES/sigrok-logo-notext.png .
########################################################################
# Copy in the dependencies that cannot be assumed to be available
copy_deps
+# Get all Qt5 plugins (won't be copied automatically).
+QT5PLUGINS=/usr/lib/x86_64-linux-gnu/qt5/plugins # Host (+ AppRun) path.
+mkdir -p .$QT5PLUGINS
+cp -r $QT5PLUGINS/accessible .$QT5PLUGINS
+cp -r $QT5PLUGINS/generic .$QT5PLUGINS
+cp -r $QT5PLUGINS/iconengines .$QT5PLUGINS
+cp -r $QT5PLUGINS/imageformats .$QT5PLUGINS
+cp -r $QT5PLUGINS/platforminputcontexts .$QT5PLUGINS
+cp -r $QT5PLUGINS/platforms .$QT5PLUGINS
+
########################################################################
# Delete stuff that should not go into the AppImage
########################################################################