How do I include a desktop configuration file not in the upstream source in an AppImage?

Hi,

I’d like to build a PyMOL AppImage. Unfortunately PyMOL doesn’t include a desktop configuration file in its SVN repository. I have a desktop configuration file I’ve written but how do I include it in my AppImage. Here’s my appimage.yml file:


app: pymol
build:
  packages:
    - linuxdeployqt
    - python2-qt5-devel
    - gcc-c++
    - glew-devel
    - make
    - libpng-devel
    - freeglut-devel
    - freetype2-devel
    - libmsgpack-devel
    - libxml2-devel
    - python2-rpm-macros
    - python2-numpy-devel
    - python2-devel
  svn:
    - svn://svn.code.sf.net/p/pymol/code/trunk
script:
  - python2 setup.py install --prefix=${BUILD_APDIR}/usr ; find $BUILD_APPDIR/
  - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
  - linuxdeployqt $BUILD_APPDIR/usr/share/applications/pymol.desktop -bundle-non-qt-libs
  - find $BUILD_APPDIR/

I’ve modelled it on the Leafpad example AppImage YAML file. How do I move my self-created pymol.desktop file to $BUILD_APPDIR/usr/share/applications/pymol.desktop?

Thanks for your time,
Brenton