Add some missing bits in Appimage build (breeze) and fix some plugins paths

parent 97906d5a
Pipeline #3612 passed with stage
in 14 minutes and 1 second
......@@ -10,7 +10,7 @@ export KDENLIVE_SOURCES=$2
# Save some frequently referenced locations in variables for ease of use / updating
export APPDIR=$BUILD_PREFIX/kdenlive.appdir
export PLUGINS=$APPDIR/usr/lib/plugins/
export PLUGINS=$APPDIR/usr/plugins/
export APPIMAGEPLUGINS=$APPDIR/usr/plugins/
mkdir -p $APPDIR
......@@ -43,6 +43,11 @@ cd $BUILD_PREFIX
# Step 1: Copy over all the resources provided by dependencies that we need
cp -r $DEPS_INSTALL_PREFIX/share/kf5 $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/kstyle $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/plasma $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/alsa $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/kservices5 $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/qt5 $APPDIR/usr/share
cp -r $DEPS_INSTALL_PREFIX/share/mime $APPDIR/usr/share
if [ -d $DEPS_INSTALL_PREFIX/share/color-schemes ] ; then
......@@ -64,7 +69,11 @@ cp -r $DEPS_INSTALL_PREFIX/bin/melt $APPDIR/usr/bin
cp -r $DEPS_INSTALL_PREFIX/bin/ffmpeg $APPDIR/usr/bin
cp -r $DEPS_INSTALL_PREFIX/bin/ffplay $APPDIR/usr/bin
cp -r $DEPS_INSTALL_PREFIX/bin/ffprobe $APPDIR/usr/bin
cp -r $DEPS_INSTALL_PREFIX/plugins/kf5 $APPDIR/usr/plugins
cp -r $DEPS_INSTALL_PREFIX/plugins/kf5 $APPIMAGEPLUGINS
cp -r $DEPS_INSTALL_PREFIX/plugins/styles $APPIMAGEPLUGINS
cp -r $DEPS_INSTALL_PREFIX/plugins/audio $APPIMAGEPLUGINS
cp -r $DEPS_INSTALL_PREFIX/plugins/org.kde.kdecoration2 $APPIMAGEPLUGINS
cp -r $DEPS_INSTALL_PREFIX/plugins/kstyle_breeze_config.so $APPIMAGEPLUGINS
mkdir -p $APPDIR/usr/libexec
......@@ -85,6 +94,26 @@ fi
# patchelf --set-rpath '$ORIGIN/../lib' $lib;
#done
for lib in $APPIMAGEPLUGINS/*.so*; do
patchelf --set-rpath '$ORIGIN/../lib' $lib;
done
for lib in $APPIMAGEPLUGINS/audio/*.so*; do
patchelf --set-rpath '$ORIGIN/../../lib' $lib;
done
for lib in $APPIMAGEPLUGINS/styles/*.so*; do
patchelf --set-rpath '$ORIGIN/../../lib' $lib;
done
for lib in $APPIMAGEPLUGINS/kf5/*.so*; do
patchelf --set-rpath '$ORIGIN/../../lib' $lib;
done
for lib in $APPIMAGEPLUGINS/org.kde.kdecoration2/*.so*; do
patchelf --set-rpath '$ORIGIN/../../lib' $lib;
done
for lib in $APPDIR/usr/lib/mlt/*.so*; do
patchelf --set-rpath '$ORIGIN/..' $lib;
done
......@@ -101,6 +130,28 @@ fi
# copy icon
cp $APPDIR/usr/share/icons/breeze/apps/48/kdenlive.svg $APPDIR
# GSTREAMER
# Requires gstreamer1.0-plugins-good
#GST_PLUGIN_SRC_DIR=/usr/lib/x86_64-linux-gnu/
#mkdir -p $APPDIR/usr/lib/x86_64-linux-gnu
#GST_LIB_DEST_DIR=$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer1.0
#mkdir -p $GST_LIB_DEST_DIR
#GST_PLUGIN_DEST_DIR=$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0
#mkdir -p $GST_PLUGIN_DEST_DIR
#cp $GST_PLUGIN_SRC_DIR/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner #$GST_PLUGIN_DEST_DIR
##cp $GST_PLUGIN_SRC_DIR/gstreamer-1.0/* $GST_LIB_DEST_DIR
#for p in $GST_PLUGIN_SRC_DIR/libgst*.so*; do
# cp $p $GST_LIB_DEST_DIR
#done
#rm $GST_LIB_DEST_DIR/libgstegl*
#for p in $GST_LIB_DEST_DIR/libgst*.so*; do
# patchelf --set-rpath '$ORIGIN/../..' $p;
#done
# Step 5: Build the image!!!
#linuxdeployqt $APPDIR/usr/bin/ffmpeg
#linuxdeployqt $APPDIR/usr/bin/ffplay
......@@ -149,6 +200,8 @@ export MLT_PROFILES_PATH=\$DIR/usr/share/mlt/profiles/
export MLT_PRESETS_PATH=\$DIR/usr/share/mlt/presets/
export SDL_AUDIODRIVER=pulseaudio
export XDG_CURRENT_DESKTOP=
export GST_PLUGIN_SCANNER=\$DIR/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
export GST_PLUGIN_PATH=\$DIR/usr/lib/x86_64-linux-gnu/gstreamer1.0/
kdenlive --config kdenlive-appimagerc \$@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment