File appimage.yml of Package OpenSCAD

app: OpenSCAD-Nightly

build:
  packages:
    - linuxdeployqt
    - update-desktop-files
    - intltool
    - curl
    - make
    - gcc-c++
    - flex
    - bison
    - pkgconfig
    - gettext
    - zlib-devel
    - glew-devel
    - Mesa-devel
    - libzip-devel
    - opencsg-devel
    - libxml2-devel
    - fontconfig-devel
    - freetype-devel
    - harfbuzz-devel
    - libeigen3-devel
    - libcgal-devel
    - libqt5-qtbase-devel
    - libqt5-qtmultimedia-devel
    - libQt5OpenGL-devel
    - libqscintilla-qt5-devel
  git:
    - https://github.com/openscad/openscad.git

script:
  - echo -------------------------- ; cat /etc/issue /etc/os-release ; echo --------------------------
  - cd $BUILD_SOURCE_DIR/openscad
  - which -a qmake-qt5
  - qmake-qt5 CONFIG+=experimental CONFIG-=debug PREFIX=/usr
  - make -j2
  - make install DESTDIR=$(readlink -f $BUILD_APPDIR) INSTALL_ROOT=$(readlink -f $BUILD_APPDIR) ; find $BUILD_APPDIR/
  - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
  # run linuxdeployqt twice to work around the Qt issue:
  # QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
  - linuxdeployqt $BUILD_APPDIR/usr/share/applications/openscad*.desktop -verbose=3 -qmake=/usr/bin/qmake-qt5 -no-strip -bundle-non-qt-libs
  - linuxdeployqt $BUILD_APPDIR/usr/share/applications/openscad*.desktop -verbose=3 -qmake=/usr/bin/qmake-qt5 -no-strip -bundle-non-qt-libs
  - find $BUILD_APPDIR/