{
 "app_id": "io.github.pyfa_org.Pyfa",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.pyfa_org.Pyfa/master/io.github.pyfa_org.Pyfa.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:12:01.771644+00:00",
 "manifest": {
  "id": "io.github.pyfa_org.Pyfa",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "pyfa",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--device=dri"
  ],
  "separate-locales": false,
  "cleanup": [
   "/lib/cmake/",
   "/lib/pkgconfig",
   "/man",
   "/include",
   "/share/aclocal",
   "/share/gtk-2.0",
   "/share/locale",
   "/share/man",
   "/share/gtk-doc",
   "/share/doc",
   "/share/vala",
   "*.la",
   "*.a",
   "/bin/wmf*",
   "/bin/libwmf-*",
   "/share/pygobject/2.0/codegen",
   "/bin/pygtk*",
   "/bin/pygobject*",
   "/lib/pygtk",
   "/bin/python*-config",
   "/bin/pip*",
   "/bin/smtpd.py",
   "*.pyc",
   "*.pyo",
   "/bin/cygdb",
   "/bin/cython",
   "/bin/cythonize",
   "/bin/easy_install",
   "/bin/f2py",
   "/bin/f2py3",
   "/bin/f2py3.7",
   "/bin/futurize",
   "/bin/helpviewer",
   "/bin/img2png",
   "/bin/img2py",
   "/bin/img2xpm",
   "/bin/markdown2",
   "/bin/normalizer",
   "/bin/pasteurize",
   "/bin/pycrust",
   "/bin/pyrsa-decrypt",
   "/bin/pyrsa-encrypt",
   "/bin/pyrsa-keygen",
   "/bin/pyrsa-priv2pub",
   "/bin/pyrsa-sign",
   "/bin/pyrsa-verify",
   "/bin/pyshell",
   "/bin/pyslices",
   "/bin/pyslicesshell",
   "/bin/pywxrc",
   "/bin/roman",
   "/bin/wheel",
   "/bin/wxdemo",
   "/bin/wxdocs",
   "/bin/wxget"
  ],
  "modules": [
   "python3-modules.json",
   {
    "name": "pyfa",
    "sources": [
     {
      "url": "https://api.github.com/repos/pyfa-org/Pyfa/tarball/v2.68.0",
      "sha256": "52bad84e64fbf1505a5eb75dc522db80000344fb6d90716f79b3ba7da5e6986b",
      "type": "archive",
      "archive-type": "tar-gzip",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/pyfa-org/Pyfa/releases/latest",
       "url-query": ".tarball_url",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "pyfa"
     },
     {
      "type": "file",
      "path": "io.github.pyfa_org.Pyfa.desktop"
     },
     {
      "type": "file",
      "path": "io.github.pyfa_org.Pyfa.metainfo.xml"
     },
     {
      "type": "file",
      "path": "icons/io.github.pyfa_org.Pyfa-256.png"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "find locale/ -type f -name '*.po' -exec msgen '{}' -o '{}' \\;",
     "python3 scripts/compile_lang.py",
     "python3 db_update.py",
     "mkdir -p ${FLATPAK_DEST}/lib/pyfa",
     "cp -r eos graphs gui imgs locale service utils eve.db config.py pyfa.py db_update.py README.md LICENSE version.yml ${FLATPAK_DEST}/lib/pyfa",
     "find ${FLATPAK_DEST}/lib/pyfa | grep -E '(__pycache__|\\.pyc|\\.pyo$)' | xargs rm -rf",
     "install -D --mode=0755 pyfa /app/bin/pyfa",
     "install -D -t ${FLATPAK_DEST}/share/applications/ ./io.github.pyfa_org.Pyfa.desktop",
     "install -D ./io.github.pyfa_org.Pyfa-256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/io.github.pyfa_org.Pyfa.png",
     "install -D -t ${FLATPAK_DEST}/share/metainfo/ ./io.github.pyfa_org.Pyfa.metainfo.xml"
    ]
   }
  ]
 }
}