{
 "app_id": "app.legcord.Legcord",
 "source_url": "https://raw.githubusercontent.com/flathub/app.legcord.Legcord/master/app.legcord.Legcord.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-download",
  "--filesystem=xdg-pictures:ro",
  "--filesystem=xdg-videos:ro",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/speech-dispatcher",
  "--filesystem=~/.steam",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=com.canonical.AppMenu.Registrar"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:06:27.535507+00:00",
 "manifest": {
  "app-id": "app.legcord.Legcord",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "startlegcord",
  "separate-locales": false,
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--device=all",
   "--filesystem=xdg-videos:ro",
   "--filesystem=xdg-pictures:ro",
   "--filesystem=xdg-download",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=xdg-run/speech-dispatcher",
   "--filesystem=~/.steam",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "build-options": {
   "strip": true,
   "append-path": "/usr/lib/sdk/node26/bin"
  },
  "modules": [
   {
    "name": "Legcord",
    "buildsystem": "simple",
    "build-commands": [
     "chmod +x Legcord.AppImage",
     "./Legcord.AppImage --appimage-extract",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"startlegcord %U\" --set-icon=$FLATPAK_ID squashfs-root/legcord.desktop",
     "for icon in 16 32 48 64 128 256 512; do\n    install -D squashfs-root/usr/share/icons/hicolor/${icon}x${icon}/apps/legcord.png \\\n        /app/share/icons/hicolor/${icon}x${icon}/apps/app.legcord.Legcord.png\ndone\n",
     "install -D squashfs-root/legcord.desktop /app/share/applications/app.legcord.Legcord.desktop",
     "install -Dm755 startlegcord /app/bin/startlegcord",
     "install -D app.legcord.Legcord.metainfo.xml -t /app/share/metainfo/",
     "mv squashfs-root /app/bin/legcord"
    ],
    "sources": [
     {
      "type": "file",
      "path": "startlegcord"
     },
     {
      "type": "file",
      "url": "https://github.com/Legcord/Legcord/releases/download/v1.3.0/Legcord-1.3.0-linux-arm64.AppImage",
      "dest-filename": "Legcord.AppImage",
      "sha512": "95543813f95958e9efcb952682526bc03c71e37a9c9e2d96fbb2e38dff36d2948139632e4e57e48c48bec62c0fd5e161b2453e099314097bac860929794e08c0",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "electron-updater",
       "url": "https://github.com/Legcord/Legcord/releases/latest/download/latest-linux-arm64.yml"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/Legcord/Legcord/releases/download/v1.3.0/Legcord-1.3.0-linux-x86_64.AppImage",
      "dest-filename": "Legcord.AppImage",
      "sha512": "ea1c32326290b99c845b64519827c7b47bb2d9b1308d1d3c15c7c40cd2fe4e898c5cab4a604ca763b6c52d576770696d8a776edcb3f2d3b71e15425984eaaf58",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "electron-updater",
       "url": "https://github.com/Legcord/Legcord/releases/latest/download/latest-linux.yml"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/Legcord/Legcord/releases/download/v1.3.0/app.legcord.Legcord.metainfo.xml",
      "sha512": "f21191a35e9ebb4c3cb5b679ed6fa40a93c395c2e8bb256f9522890a5b8bc24504bf8fa7c164efa03abd622249236c4cd35622882d51bf7e39d64533410126f9",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Legcord/Legcord/releases/latest",
       "version-query": ".tag_name | sub(\"v\"; \"\")",
       "url-query": ".assets[] | select(.name == \"app.legcord.Legcord.metainfo.xml\") | .browser_download_url"
      }
     },
     {
      "type": "patch",
      "path": "metainfo.patch"
     }
    ]
   }
  ]
 }
}