X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fappimage%2Fsigrok-native-appimage;h=f9c630900d50d81c7da8997c781d075b0d661242;hp=39845bdbb5ba2b815d30c6fd2c93f3bf27cea745;hb=6e8a37a4c48156b37550a667939156039d4d6a91;hpb=e163385a1eeee7666c1a484fde7bd4f63c4acd48 diff --git a/cross-compile/appimage/sigrok-native-appimage b/cross-compile/appimage/sigrok-native-appimage index 39845bd..f9c6309 100755 --- a/cross-compile/appimage/sigrok-native-appimage +++ b/cross-compile/appimage/sigrok-native-appimage @@ -14,6 +14,8 @@ APPIMAGEKIT_OUTDIR=$HOME/AppImageKit/out ARCH=x86_64 +PYVER=3.4 + ######################################################################## # You usually don't have to change anything below this line ######################################################################## @@ -78,6 +80,17 @@ cp -r $QT5PLUGINS/imageformats .$QT5PLUGINS cp -r $QT5PLUGINS/platforminputcontexts .$QT5PLUGINS cp -r $QT5PLUGINS/platforms .$QT5PLUGINS +# Get some additional dependencies of the Qt5 plugins. +ldd .$QT5PLUGINS/platforms/libqxcb.so | grep "=>" | awk '{print $3}' | xargs -I '{}' cp -v '{}' ./usr/lib || true +ldd .$QT5PLUGINS/imageformats/libqsvg.so | grep "=>" | awk '{print $3}' | xargs -I '{}' cp -v '{}' ./usr/lib || true + +# Python 3 +cp /usr/lib/x86_64-linux-gnu/libpython$PYVER* ./usr/lib +mkdir -p ./usr/share/pyshared +cp -r /usr/lib/python$PYVER/* ./usr/share/pyshared # AppRun expects this path. + +cp -r ./usr/share/pyshared/plat-x86_64-linux-gnu/* ./usr/share/pyshared + ######################################################################## # Delete stuff that should not go into the AppImage ########################################################################