{
 "app_id": "fr.inria.corese.CoreseGui",
 "source_url": "https://raw.githubusercontent.com/flathub/fr.inria.corese.CoreseGui/master/fr.inria.corese.CoreseGui.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download",
  "--filesystem=xdg-desktop",
  "--talk-name=org.freedesktop.IBus.*",
  "--talk-name=org.freedesktop.IBus"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:59.859657+00:00",
 "manifest": {
  "app-id": "fr.inria.corese.CoreseGui",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk25"
  ],
  "command": "corese-gui",
  "finish-args": [
   "--share=network",
   "--talk-name=org.freedesktop.IBus",
   "--talk-name=org.freedesktop.IBus.*",
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--filesystem=xdg-desktop"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk25/install.sh"
    ]
   },
   {
    "name": "corese-gui",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 corese-gui-standalone.jar /app/bin/corese-gui-standalone.jar",
     "install -Dm755 packaging/flatpak/scripts/run.sh /app/bin/corese-gui",
     "install -Dm644 src/main/resources/images/startup-splash-primer-dark.png /app/share/corese-gui/startup-splash-primer-dark.png",
     "install -Dm644 packaging/flatpak/appdata/${FLATPAK_ID}.appdata.xml /app/share/metainfo/${FLATPAK_ID}.appdata.xml",
     "install -Dm644 packaging/flatpak/appdata/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 packaging/assets/logo/${FLATPAK_ID}.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/corese-stack/corese-gui/releases/download/v5.0.1/corese-gui-5.0.1-standalone-linux-x64.jar",
      "sha256": "3c93a716aad26522b2e9f2ea09f0c00814ecb05d967bef8797e54004225e02a1",
      "dest-filename": "corese-gui-standalone.jar",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/corese-stack/corese-gui/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | endswith(\"-standalone-linux-x64.jar\")) | .browser_download_url"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/corese-stack/corese-gui/releases/download/v5.0.1/corese-gui-5.0.1-standalone-linux-arm64.jar",
      "sha256": "b5af3544ba96cfb0a0e21906909491d65deeb98e5fb793c0399408e8a76028ff",
      "dest-filename": "corese-gui-standalone.jar",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/corese-stack/corese-gui/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | endswith(\"-standalone-linux-arm64.jar\")) | .browser_download_url"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/corese-stack/corese-gui/archive/refs/tags/v5.0.1.tar.gz",
      "sha256": "dcbd3cd68ebd76617a6ef68a48a840dfed9e592906401afd9899a6e3eeddf5d5",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/corese-stack/corese-gui/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://github.com/corese-stack/corese-gui/archive/refs/tags/\" + $version + \".tar.gz\""
      }
     }
    ]
   }
  ]
 }
}