{
 "app_id": "org.zulip.Zulip",
 "source_url": "https://raw.githubusercontent.com/flathub/org.zulip.Zulip/master/org.zulip.Zulip.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=com.canonical.AppMenu.Registrar"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T13:35:11.530005+00:00",
 "manifest": {
  "app-id": "org.zulip.Zulip",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "26.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-download",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.AppMenu.Registrar"
  ],
  "modules": [
   {
    "name": "zulip",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/run/build/zulip/bin:/usr/lib/sdk/node24/bin"
    },
    "subdir": "main",
    "build-commands": [
     "mkdir ../bin",
     "ln -s ../pnpm/pnpm ../bin/pnpm",
     "cat ../pnpm-workspace.yaml >> pnpm-workspace.yaml",
     "echo 'trustLockfile: true' >> pnpm-workspace.yaml",
     "pnpm install --frozen-lockfile --ignore-scripts --offline",
     "npm_package_config_node_gyp_nodedir=\"$FLATPAK_BUILDER_BUILDDIR/flatpak-node/cache/node-gyp/44.4.1\" node --run postinstall",
     "set -eux\n. ../flatpak-node/electron-builder-arch-args.sh\nexport XDG_CACHE_HOME=\"$FLATPAK_BUILDER_BUILDDIR/flatpak-node/cache\"\nnode --run pack -- $ELECTRON_BUILDER_ARCH_ARGS --linux --config.electronDownload.unsafelyDisableChecksums=true\n",
     "mv dist/linux*-unpacked $FLATPAK_DEST/main",
     "install -D -m 644 build/zulip.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png",
     "install -D -m 755 -t $FLATPAK_DEST/bin ../run.sh",
     "install -D -m 644 -t $FLATPAK_DEST/share/applications ../$FLATPAK_ID.desktop",
     "install -D -m 644 -t $FLATPAK_DEST/share/metainfo ../$FLATPAK_ID.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "dest": "main",
      "url": "https://github.com/zulip/zulip-desktop.git",
      "tag": "v5.13.2",
      "commit": "1cc112def5cd4b0b3ffe15c0857258c527b4421a",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/zulip/zulip-desktop/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "archive",
      "dest": "pnpm",
      "url": "https://registry.npmjs.org/@pnpm/exe.linux-arm64/-/exe.linux-arm64-12.4.2.tgz",
      "sha512": "d9d4a20d7ca1c7e4531ec7b0c5ec7c7ff8d58ea417589da8a30e240951c459d64a781a60331bd9e9f1e44c050125782a85b2880c7bee3656413fb8097d458be4",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "archive",
      "dest": "pnpm",
      "url": "https://registry.npmjs.org/@pnpm/exe.linux-ppc64/-/exe.linux-ppc64-12.4.2.tgz",
      "sha512": "f08b5cfa3424f8c4f3d382d2f43d51707f9572d0169b333897570943e4b1ee9009368ec428775131b0b44e89358f243b7841cd2590f91257989de66a59f64cfa",
      "only-arches": [
       "ppc64le"
      ]
     },
     {
      "type": "archive",
      "dest": "pnpm",
      "url": "https://registry.npmjs.org/@pnpm/exe.linux-riscv64/-/exe.linux-riscv64-12.4.2.tgz",
      "sha512": "86578e7aa8535691fecfd4553069f1bd4e199eb9015029568c26c70fdbba930caa8464a97afa14d704c68ac87e08146198880c032f6901f169aa16c028e28d7f",
      "only-arches": [
       "riscv64"
      ]
     },
     {
      "type": "archive",
      "dest": "pnpm",
      "url": "https://registry.npmjs.org/@pnpm/exe.linux-s390x/-/exe.linux-s390x-12.4.2.tgz",
      "sha512": "2c0b1045174ff5a4e810d47a76d70827d97e7b5ccc60e5f4b5070b1a94722cf54141c6112e5bc03dc983b21b22207423a74e520daf452347335f5650d5aedafc",
      "only-arches": [
       "s390x"
      ]
     },
     {
      "type": "archive",
      "dest": "pnpm",
      "url": "https://registry.npmjs.org/@pnpm/exe.linux-x64/-/exe.linux-x64-12.4.2.tgz",
      "sha512": "fe96edd145536bc34c0e1cce58b4117d9e86f5138a5e524f66dc7ce3906ac967dcee10ab5978532c177bd323b6cbcf84f8858dde81ccd6cfc9b0840d1a4d72be",
      "only-arches": [
       "x86_64"
      ]
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "set -eu",
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper.sh /app/main/zulip \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "org.zulip.Zulip.desktop"
     },
     {
      "type": "file",
      "path": "org.zulip.Zulip.metainfo.xml"
     }
    ]
   }
  ]
 }
}