{
 "app_id": "com.mattermost.Desktop",
 "source_url": "https://raw.githubusercontent.com/flathub/com.mattermost.Desktop/master/com.mattermost.Desktop.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pcsc",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=home",
  "--talk-name=org.kde.kwalletd",
  "--talk-name=org.kde.kwalletd5",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.kwalletd6",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=com.canonical.AppMenu.Registrar"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:08:17.060338+00:00",
 "manifest": {
  "app-id": "com.mattermost.Desktop",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "mattermost-flatpak",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--socket=pcsc",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--talk-name=org.kde.kwalletd",
   "--talk-name=org.kde.kwalletd5",
   "--talk-name=org.kde.kwalletd6",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "mattermost-desktop",
    "buildsystem": "simple",
    "build_commands": [
     "mkdir -p /app/main /app/bin",
     "cp -ra main/* /app/main/",
     "install mattermost.sh /app/bin/mattermost-flatpak",
     "install -Dm644 com.mattermost.Desktop.desktop /app/share/applications/com.mattermost.Desktop.desktop",
     "install -Dm644 com.mattermost.Desktop.appdata.xml /app/share/appdata/com.mattermost.Desktop.appdata.xml",
     "install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/com.mattermost.Desktop.svg",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"mattermost-flatpak --enable-features=WebRTCPipeWireCapturer %U\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/main/resources/app.asar"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "mattermost.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper /app/main/mattermost-desktop \"$@\""
      ]
     },
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://releases.mattermost.com/desktop/6.3.0/mattermost-desktop-6.3.0-linux-x64.tar.gz",
      "sha256": "34d0b9c3c67eed0b77cc417758008f17dbd3ee9ab9fda535983e7fb85fcdb7aa",
      "x-checker-data": {
       "is-main-source": true,
       "type": "anitya",
       "project-id": 215074,
       "stable-only": true,
       "url-template": "https://releases.mattermost.com/desktop/$version/mattermost-desktop-$version-linux-x64.tar.gz"
      },
      "dest": "main"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://releases.mattermost.com/desktop/6.3.0/mattermost-desktop-6.3.0-linux-arm64.tar.gz",
      "sha256": "4253f39cac8fcb15405a139a6c4df35b574d23510740dd1a204faaecceadf828",
      "x-checker-data": {
       "is-main-source": true,
       "type": "anitya",
       "project-id": 215074,
       "stable-only": true,
       "url-template": "https://releases.mattermost.com/desktop/$version/mattermost-desktop-$version-linux-arm64.tar.gz"
      },
      "dest": "main"
     },
     {
      "type": "file",
      "path": "com.mattermost.Desktop.appdata.xml"
     },
     {
      "type": "file",
      "path": "com.mattermost.Desktop.desktop"
     },
     {
      "type": "file",
      "path": "icon.svg"
     },
     {
      "type": "file",
      "url": "https://github.com/mattermost/desktop/archive/v6.3.0.tar.gz",
      "sha256": "a78d6480538e23fcfd928b2acd63019b607a74f43cb93d97f0ea8c689e5b1fda",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 215074,
       "stable-only": true,
       "url-template": "https://github.com/mattermost/desktop/archive/v$version.tar.gz"
      }
     }
    ]
   }
  ]
 }
}