How to port my app to flatpak

this the github repo GitHub - EchoRavenX/5mindapp: this linux client for the 5mind website

Flatpak builder noob here but you could probably get this to work with something like this

name: ffnvcodec
  buildsystem: simple
  build-commands:
    - <insert your npm build command here>
  sources:
    - type: git
      url: https://github.com/FFmpeg/nv-codec-headers.git
      commit: 43d91706e097565f57b311e567f0219838bcc2f6
      tag: n11.1.5.3

this is in the runtime. If it’s not then you are using an old runtime, which you shouldn’t.