mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-05 10:29:27 +00:00
AppImage: fix build
This commit is contained in:
parent
1c798c77f0
commit
91b86b949b
1 changed files with 16 additions and 2 deletions
|
@ -17,15 +17,29 @@ cp "$PWD/bin/feather" "$APPDIR/usr/bin/feather"
|
||||||
chmod +x "$APPDIR/usr/bin/feather"
|
chmod +x "$APPDIR/usr/bin/feather"
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/:/usr/local/lib/$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/:/usr/local/lib/$LD_LIBRARY_PATH
|
||||||
linuxdeployqt feather.AppDir/usr/share/applications/feather.desktop -bundle-non-qt-libs
|
linuxdeployqt feather.AppDir/usr/share/applications/feather.desktop -verbose=2 -bundle-non-qt-libs
|
||||||
|
|
||||||
pushd feather.AppDir/usr/plugins
|
pushd feather.AppDir/usr/plugins
|
||||||
ln -s ../lib/ gstreamer
|
ln -s ../lib/ gstreamer
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cp -r /usr/lib/x86_64-linux-gnu/gstreamer-1.0/* feather.AppDir/usr/plugins/gstreamer/
|
GST_PLUGINS=("libgstcamerabin.so libgstcoreelements.so libgstvolume.so libgstapp.so libgstvideoconvert.so
|
||||||
|
libgstvideoscale.so libgstvideo4linux2.so libgstencoding.so libgstmultifile.so libgstmatroska.so
|
||||||
|
libgstvpx.so libgstjpegformat.so libgstjpeg.so libgstautodetect.so libgstaudiotestsrc.so
|
||||||
|
libgstvorbis.so libgstaudiorate.so libgstaudioconvert.so libgstaudioresample.so libgstvideocrop.so")
|
||||||
|
|
||||||
|
for plugin in ${GST_PLUGINS[*]}; do
|
||||||
|
cp /usr/lib/x86_64-linux-gnu/gstreamer-1.0/$plugin feather.AppDir/usr/plugins/gstreamer/
|
||||||
|
|
||||||
|
# linuxdeployqt doesn't set RUNPATH on libs that are only loaded at runtime
|
||||||
|
patchelf --set-rpath "\$ORIGIN" feather.AppDir/usr/plugins/gstreamer/$plugin
|
||||||
|
done
|
||||||
|
|
||||||
cp /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner feather.AppDir/usr/plugins/gstreamer/
|
cp /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner feather.AppDir/usr/plugins/gstreamer/
|
||||||
|
|
||||||
|
# Need second deploy for gstreamer dependencies
|
||||||
|
linuxdeployqt feather.AppDir/usr/share/applications/feather.desktop -verbose=2 -bundle-non-qt-libs
|
||||||
|
|
||||||
rm "$APPDIR/AppRun"
|
rm "$APPDIR/AppRun"
|
||||||
cp "$PWD/../contrib/AppImage/AppRun" "$APPDIR/"
|
cp "$PWD/../contrib/AppImage/AppRun" "$APPDIR/"
|
||||||
chmod +x "$APPDIR/AppRun"
|
chmod +x "$APPDIR/AppRun"
|
||||||
|
|
Loading…
Reference in a new issue