Bundle appimagetool properly
This PR illustrates how to properly bundle appimagetool by bundling its entire AppDir and using AppRun as the entrypoint.
After playing CI ping-pong for 10 times (because this repository's CI is in a really bad state), please anyone feel free to use my work and finish it. I can't invest more time into debugging what linuxdeployqt is doing there. LD_LIBRARY_PATH has been set correctly IMO.
This will be the last ever contribution to this tool. It's obviously close to being unmaintained, and there are better alternatives out there. Contributing stuff is hard because of the bad state of CI and code as well.
Fixes #542.
There is no effort from my side to fix the various other issues with these CI scripts and their usability. This is a minimal patch that creates a basic setup. AFAICS linuxdeployqt is doing weird things now, doesn't respect LD_LIBRARY_PATH. If you weren't so objected to using linuxdeploy on appimagetool, then this could be even easier (and would have saved me many hours of work in AppImageKit trying to deploy stuff the "old way", i.e., using hacks like LD_LIBRARY_PATH and not DT_RUN_PATH)...
The workflow is pretty clear to the reader in my opinion. Extract the AppImage and put the entire AppDir into linuxdeployqt's AppDir. I hate to repeat myself, but it seems necessary. The reason it's done in /tmp and stuff is because the CI scripts are suboptimal and used to depend on appimagetool being extracted right into /usr/local, which is a nightmare that should be solved but clearly outside the scope of this PR. Even this bad hack is not responsible for the current CI issue, it's linuxdeployqt itself apparently. It doesn't have to do anything about the appimagetool AppDir, but does it anyway and fails unexpectedly.
This will be the last ever contribution to this tool. It's obviously close to being unmaintained, and there are better alternatives out there.
I wasn't aware of the state of this tool, do you mind mentioning some recommended alternatives by name, so I can switch over to them?