{
 "app_id": "dev.zed.Zed-Preview",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.zed.Zed-Preview/master/dev.zed.Zed-Preview.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=gpg-agent",
  "--socket=pulseaudio",
  "--socket=ssh-auth",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:09:49.070309+00:00",
 "manifest": {
  "app-id": "dev.zed.Zed-Preview",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "zed-wrapper",
  "separate-locales": false,
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/pkgconfig",
   "/man",
   "/share/info",
   "/share/man"
  ],
  "finish-args": [
   "--device=dri",
   "--filesystem=home",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--talk-name=org.freedesktop.Flatpak",
   "--talk-name=org.freedesktop.secrets",
   "--socket=ssh-auth",
   "--socket=gpg-agent",
   "--env=SSH_ASKPASS=/app/libexec/openssh/gnome-ssh-askpass",
   "--env=ZED_FLATPAK_NO_ESCAPE=1"
  ],
  "modules": [
   {
    "name": "ssh-askpass",
    "buildsystem": "simple",
    "build-commands": [
     "make -C contrib gnome-ssh-askpass3",
     "install -Dm755 contrib/gnome-ssh-askpass3 ${FLATPAK_DEST}/libexec/openssh/gnome-ssh-askpass"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "d44d28a839ea9daf969cc69150fde59910b2b39361dad81a3bd6cbd19218db11",
      "url": "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.5p1.tar.gz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2565,
       "stable-only": true,
       "url-template": "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "gcr",
    "buildsystem": "meson",
    "cleanup": [
     "/lib/girepository-1.0",
     "/share/gir-1.0",
     "/share/doc",
     "/share/gtk-doc",
     "/share/pkgconfig"
    ],
    "config-opts": [
     "-Dgtk_doc=false",
     "-Dintrospection=false"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "bad10f3c553a0e1854649ab59c5b2434da22ca1a54ae6138f1f53961567e1ab7",
      "url": "https://download.gnome.org/sources/gcr/3.41/gcr-3.41.2.tar.xz"
     }
    ]
   },
   {
    "name": "netcat",
    "buildsystem": "simple",
    "build-commands": [
     "while read patch; do\n  echo \"Applying $patch...\"\n  patch -Np1 -i \"debian/patches/$patch\"\ndone < debian/patches/series\n",
     "sed -i 's/LIBS=/LIBS ?=/' Makefile",
     "make CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"-Wl,-Bstatic -lbsd -lmd -Wl,-Bdynamic -lresolv\"",
     "install -Dm0755 nc /app/bin/nc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/1.238-1/netcat-openbsd-debian-1.238-1.tar.gz",
      "sha256": "ca2fed5e3e0e9841af812bd7ad2ed9e094f5c4cb72817e91323c75e14858af4a",
      "x-checker-data": {
       "type": "json",
       "url": "https://salsa.debian.org/api/v4/projects/20760/repository/tags",
       "version-query": "map(select(.name | startswith(\"debian/\"))) | first | .name | split(\"debian/\") | .[1]",
       "url-query": "\"https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/\" + $version + \"/netcat-openbsd-debian-\" + $version + \".tar.gz\""
      }
     }
    ],
    "modules": [
     {
      "name": "libbsd",
      "buildsystem": "autotools",
      "config-opts": [
       "--enable-static",
       "--disable-shared"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://libbsd.freedesktop.org/releases/libbsd-0.12.2.tar.xz",
        "sha256": "b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 1567,
         "stable-only": true,
         "url-template": "https://libbsd.freedesktop.org/releases/libbsd-$version.tar.xz"
        }
       }
      ],
      "modules": [
       {
        "name": "libmd",
        "buildsystem": "autotools",
        "config-opts": [
         "--enable-static",
         "--disable-shared"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://libbsd.freedesktop.org/releases/libmd-1.2.0.tar.xz",
          "sha256": "ac15ffb8430502fbaccdec66c5a82ee0eab0b0f36220df56710feadfeb13d0a0",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 15525,
           "stable-only": true,
           "url-template": "https://libbsd.freedesktop.org/releases/libmd-$version.tar.xz"
          }
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "zed-preview",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 755 bin/* --target-directory ${FLATPAK_DEST}/bin",
     "install -Dm 755 lib/* --target-directory ${FLATPAK_DEST}/lib",
     "install -Dm 755 libexec/* --target-directory ${FLATPAK_DEST}/libexec",
     "install -Dm 644 share/applications/* --target-directory ${FLATPAK_DEST}/share/applications",
     "install -Dm 644 ${FLATPAK_ID}.metainfo.xml --target-directory ${FLATPAK_DEST}/share/metainfo",
     "install -Dm 644 share/icons/hicolor/512x512/apps/zed.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/zed-preview.png",
     "rename zed-preview ${FLATPAK_ID} ${FLATPAK_DEST}/share/{applications/*,icons/hicolor/*/apps/*}",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"zed-wrapper %U\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon=\"${FLATPAK_ID}\" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/zed-industries/zed/releases/download/v1.21.0-pre/zed-linux-x86_64.tar.gz",
      "sha256": "eadc30098196a0a212988a5ea4d193e78641e17b459e4275ddd7675175449b44",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/zed-industries/zed/releases",
       "version-query": "map(select(.prerelease)) | first | .tag_name",
       "url-query": "map(select(.prerelease)) | first | .assets[] | select(.name==\"zed-linux-x86_64.tar.gz\") | .browser_download_url",
       "is-main-source": true
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/zed-industries/zed/releases/download/v1.21.0-pre/zed-linux-aarch64.tar.gz",
      "sha256": "aa65679420a813d869387adcb853ee28b2eaa14988cd05eb4df1595e83a16839",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/zed-industries/zed/releases",
       "version-query": "map(select(.prerelease)) | first | .tag_name",
       "url-query": "map(select(.prerelease)) | first | .assets[] | select(.name==\"zed-linux-aarch64.tar.gz\") | .browser_download_url",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "dev.zed.Zed-Preview.metainfo.xml"
     }
    ]
   },
   {
    "name": "host-spawn",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 host-spawn /app/bin/host-spawn"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/1player/host-spawn/releases/download/v1.6.2/host-spawn-x86_64",
      "sha256": "077bc09a087292447ba17cfe2156a93f71bf56c4c6be8e38d3abe65c1240f34c",
      "dest-filename": "host-spawn",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/1player/host-spawn/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": "[.assets[] | select(.name|test(\".+x86_64$\"))][0] | .browser_download_url"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/1player/host-spawn/releases/download/v1.6.2/host-spawn-aarch64",
      "sha256": "8b30215b0b6b66c8c34a3e22d372dd39020295cd0904608bc2c5f5ecff829e5f",
      "dest-filename": "host-spawn",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/1player/host-spawn/releases/latest",
       "tag-query": ".tag_name",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": "[.assets[] | select(.name|test(\".+aarch64$\"))][0] | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "zed-wrapper",
    "buildsystem": "meson",
    "config-opts": [
     "-Deditor_binary=/app/bin/zed",
     "-Deditor_title=Zed",
     "-Dprogram_name=zed-wrapper",
     "-Dfirst_run_template=README.md",
     "-Dsdk_update_template=sdk_update.md",
     "-Dflagfile_prefix=flatpak-zed",
     "-Ddefault_loglevel=0"
    ],
    "sources": [
     {
      "type": "git",
      "commit": "d581fd9b873acbf6fb22899aa388435f6c00f61a",
      "url": "https://github.com/flathub-infra/ide-flatpak-wrapper"
     },
     {
      "type": "file",
      "path": "README.md"
     },
     {
      "type": "file",
      "path": "sdk_update.md"
     }
    ]
   }
  ]
 }
}