Multiple executables in one AppImage which share libs


I have two applications built with the Qt framework that I’d like to package together. There is a main program that calls a secondary program.

Both programs share some Qt libraries. I currently build the secondary as an appImage then include it in the main appImage. This makes the overall image very large. It would be much smaller if I could build both executables into one image and have them share libraries. I looked at the documentation and I’m not finding any mention of how to do this.

Is this possible?


Yes. Have both applications in the same AppDir, and specify the secondary application (the one that is not being referenced in Exec= in the desktop file) to linuxdeployqt like this: linuxdeployqt -binary=appdir/usr/bin/secondaryapp -appimage.