{
 "app_id": "chat.revolt.RevoltDesktop",
 "source_url": "https://raw.githubusercontent.com/flathub/chat.revolt.RevoltDesktop/master/chat.revolt.RevoltDesktop.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=xdg-documents:ro",
  "--filesystem=xdg-pictures:ro",
  "--filesystem=xdg-videos:ro",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:06:42.467294+00:00",
 "manifest": {
  "app-id": "chat.revolt.RevoltDesktop",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "revolt-desktop",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=all",
   "--share=network",
   "--filesystem=xdg-documents:ro",
   "--filesystem=xdg-pictures:ro",
   "--filesystem=xdg-videos:ro",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=auto",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "revolt",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node22/bin",
     "env": {
      "npm_config_nodedir": "/usr/lib/sdk/node22"
     }
    },
    "build-commands": [
     "cp -a revolt-desktop /app/",
     "install -Dm775 revolt-desktop.sh /app/bin/revolt-desktop",
     "install -D chat.revolt.RevoltDesktop.desktop -t /app/share/applications/",
     "install -Dm644 $FLATPAK_ID.metainfo.xml -t /app/share/metainfo/",
     "install -D icon.png /app/share/icons/hicolor/256x256/apps/chat.revolt.RevoltDesktop.png"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/revoltchat/desktop/releases/download/v1.0.8/revolt-desktop-1.0.8.tar.gz",
      "sha256": "60738e4fc2574ce1d2d4ff4ca18dfac93e2f53d81bcbbbb4e40f5751f428a4ae",
      "dest": "revolt-desktop",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/revoltchat/desktop/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": "\"https://github.com/revoltchat/desktop/releases/download/\" + $tag + \"/revolt-desktop-\" + $version + \".tar.gz\""
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/revoltchat/desktop/releases/download/v1.0.8/revolt-desktop-1.0.8-arm64.tar.gz",
      "sha256": "758bc74914de8ff2a9c4faa6a3f09a19ef93cd65d2310da7450a3c082c6407da",
      "dest": "revolt-desktop",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/revoltchat/desktop/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": "\"https://github.com/revoltchat/desktop/releases/download/\" + $tag + \"/revolt-desktop-\" + $version + \"-arm64.tar.gz\""
      }
     },
     {
      "type": "script",
      "dest-filename": "revolt-desktop.sh",
      "commands": [
       "env TMPDIR=\"$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-chat.revolt.RevoltDesktop}\" zypak-wrapper /app/revolt-desktop/revolt-desktop \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "chat.revolt.RevoltDesktop.desktop"
     },
     {
      "type": "file",
      "path": "chat.revolt.RevoltDesktop.metainfo.xml"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/revoltchat/desktop/master/assets/icon.png",
      "sha256": "db64c2f3ab6714771638d06f3c0156e42c82ff6cbd041370b23aa691ab7fdeec"
     }
    ]
   }
  ]
 }
}