{
 "app_id": "im.riot.Riot",
 "source_url": "https://raw.githubusercontent.com/flathub/im.riot.Riot/master/im.riot.Riot.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/keyring",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=com.canonical.Unity"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-19T15:19:53.027543+00:00",
 "manifest": {
  "app-id": "im.riot.Riot",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "26.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "element",
  "separate-locales": false,
  "finish-args": [
   "--require-version=1.7.0",
   "--socket=x11",
   "--share=ipc",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--filesystem=xdg-run/keyring",
   "--filesystem=xdg-run/pipewire-0",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--talk-name=com.canonical.Unity"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/*.la",
   "/lib/*.a",
   "/share/pkgconfig",
   "/share/aclocal",
   "/share/gtk-doc",
   "/share/doc",
   "/share/info",
   "/share/man",
   "/man"
  ],
  "modules": [
   {
    "name": "riot",
    "buildsystem": "simple",
    "build-commands": [
     "install element.sh /app/bin/element",
     "install -Dm644 im.riot.Riot.desktop /app/share/applications/im.riot.Riot.desktop",
     "install -Dm644 im.riot.Riot.metainfo.xml /app/share/metainfo/im.riot.Riot.metainfo.xml",
     "rm element.sh im.riot.Riot.desktop im.riot.Riot.metainfo.xml",
     "install -Dm644 ElementLogomark.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "mkdir /app/Element",
     "cp -r * /app/Element",
     "chmod -R a-s,go+rX,go-w \"/app/Element\"",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/Element/resources/app.asar"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-1.12.28.tar.gz",
      "sha256": "f8c6519d6f372fe657f5b12c832bda866ae652ddf3356597e5b6426a83fbc9b3",
      "x-checker-data": {
       "type": "html",
       "url": "https://packages.element.io/desktop/install/linux/glibc-x86-64/index.html",
       "version-pattern": "element-desktop-([\\d\\.-]*).tar.gz",
       "url-template": "https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-$version.tar.gz"
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://packages.element.io/desktop/install/linux/glibc-aarch64/element-desktop-1.12.28-arm64.tar.gz",
      "sha256": "c3606a2e74ddc2819791a061b00beef39121c5876c742a7cd26e70a5d11ef29f",
      "x-checker-data": {
       "type": "html",
       "url": "https://packages.element.io/desktop/install/linux/glibc-aarch64/index.html",
       "version-pattern": "element-desktop-([\\d\\.-]*)-arm64.tar.gz",
       "url-template": "https://packages.element.io/desktop/install/linux/glibc-aarch64/element-desktop-$version-arm64.tar.gz"
      }
     },
     {
      "type": "file",
      "path": "element.sh"
     },
     {
      "type": "file",
      "path": "im.riot.Riot.metainfo.xml"
     },
     {
      "type": "file",
      "path": "im.riot.Riot.desktop"
     },
     {
      "type": "file",
      "path": "ElementLogomark.svg"
     }
    ]
   }
  ]
 }
}