Notes on AppImage build tools to linuxdeploy
Open, Needs TriagePublic

Description

linuxdeployqt is now deprecated by the authors, we are expected to update to the new linuxdeploy (without 'qt' suffix) some time in the future.

Download the new tools and unpack the two appimages:

https://github.com/linuxdeploy/linuxdeploy
https://github.com/linuxdeploy/linuxdeploy-plugin-qt

  1. Run standard deploy script without the last call to linuxdeployqt
  2. Run these commands
export PLUGINS=--deploy-deps-only=$APPDIR/usr/lib/kritaplugins/ --deploy-deps-only=$APPDIR/usr/lib/krita-python-libs/PyKrita/krita.so --deploy-deps-only=$APPDIR/usr/qml/org/krita/sketch/libkritasketchplugin.so --deploy-deps-only=$APPDIR/usr/qml/org/krita/draganddrop/libdraganddropplugin.so
export QML_SOURCES_PATHS=$APPDIR/usr/qml:$DEPSDIR/qml

export MLT_BINARIES=""
for BIN in $APPDIR/usr/lib/libmlt*.so*; do
  MLT_BINARIES="${MLT_BINARIES} --deploy-deps-only=${BIN}"
done

for BIN in $APPDIR/usr/lib/mlt/*.so*; do
  MLT_BINARIES="${MLT_BINARIES} --deploy-deps-only=${BIN}"
done

export FFMPEG_BINARIES=""
for BIN in $APPDIR/usr/bin/ff*; do
  FFMPEG_BINARIES="${FFMPEG_BINARIES} --deploy-deps-only=${BIN}"
done

for BIN in $APPDIR/usr/lib/libav*.s*; do
  FFMPEG_BINARIES="${FFMPEG_BINARIES} --deploy-deps-only=${BIN}"
done;

for BIN in $APPDIR/usr/lib/libpostproc*; do
  FFMPEG_BINARIES="${FFMPEG_BINARIES} --deploy-deps-only=${BIN}"
done;

for BIN in $APPDIR/usr/lib/libsw*.s*; do
  FFMPEG_BINARIES="${FFMPEG_BINARIES} --deploy-deps-only=${BIN}"
done;

# a workaround for a bug in linuxdeploy we should create an empty folder here
mkdir /home/appimage/appimage-workspace/deps/usr/plugins/printsupport

# not needed when the line below has `-p qt` option
#DEBUG=1 ~/persistent/lindep/squashfs-root/usr/bin/linuxdeploy-plugin-qt --appdir=$APPDIR

~/persistent/lindep/squashfs-root/usr/bin/linuxdeploy --appdir=$APPDIR -e $APPDIR/usr/bin/krita -i $APPDIR/usr/share/icons/hicolor/512x512/apps/krita.png -d $APPDIR/usr/share/applications/org.kde.krita.desktop -p qt -v0 $MLT_BINARIES $FFMPEG_BINARIES $PLUGINS --custom-apprun=krita-apprun-build/AppRun --output appimage
dkazakov created this task.Aug 14 2023, 3:04 PM
dkazakov updated the task description. (Show Details)