{
 "app_id": "org.ferdium.Ferdium",
 "source_url": "https://raw.githubusercontent.com/flathub/org.ferdium.Ferdium/master/org.ferdium.Ferdium.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=home:ro",
  "--filesystem=xdg-download",
  "--filesystem=/run/.heim_org.h5l.kcm-socket",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--own-name=org.mpris.MediaPlayer2.chromium.*"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:14:31.411412+00:00",
 "manifest": {
  "app-id": "org.ferdium.Ferdium",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ferdium",
  "separate-locales": false,
  "rename-desktop-file": "ferdium.desktop",
  "rename-icon": "ferdium",
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network",
   "--device=all",
   "--filesystem=home:ro",
   "--filesystem=xdg-download",
   "--filesystem=/run/.heim_org.h5l.kcm-socket",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=x11",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--own-name=org.mpris.MediaPlayer2.chromium.*"
  ],
  "modules": [
   {
    "name": "krb5",
    "subdir": "src",
    "config-opts": [
     "--disable-static",
     "--disable-rpath"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://kerberos.org/dist/krb5/1.22/krb5-1.22.2.tar.gz",
      "sha256": "3243ffbc8ea4d4ac22ddc7dd2a1dc54c57874c40648b60ff97009763554eaf13",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13287,
       "stable-only": true,
       "url-template": "https://kerberos.org/dist/krb5/$major.$minor/krb5-$major.$minor.$patch.tar.gz"
      }
     }
    ]
   },
   {
    "name": "krb5-config",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "path": "krb5.conf"
     }
    ],
    "build-commands": [
     "mkdir -p /app/etc",
     "install -m 644 krb5.conf /app/etc/krb5.conf"
    ]
   },
   {
    "name": "ferdium-desktop",
    "buildsystem": "simple",
    "build-commands": [
     "ar x Ferdium-*.deb",
     "rm -f Ferdium-*.deb",
     "tar xf data.tar.xz",
     "rm -f control.tar.gz data.tar.xz debian-binary",
     "cp -r usr/* opt/* /app",
     "chmod -R a-s,go+rX,go-w /app/Ferdium",
     "rm -r /app/share/icons/hicolor/1024x1024",
     "desktop-file-edit --set-key=Exec --set-value='ferdium %U' /app/share/applications/ferdium.desktop",
     "install ferdium.sh /app/bin/ferdium",
     "install -Dm644 org.ferdium.Ferdium.metainfo.xml /app/share/metainfo/org.ferdium.Ferdium.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/ferdium/ferdium-app/releases/download/v7.2.3/Ferdium-linux-7.2.3-amd64.deb",
      "sha256": "f8a3f5d3b6bc4e6af6a91f291fe807b97a84aa20b91313c65e860ea95d54adba",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ferdium/ferdium-app/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"Ferdium-linux-\" + $version + \"-amd64.deb\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/ferdium/ferdium-app/releases/download/v7.2.3/Ferdium-linux-7.2.3-arm64.deb",
      "sha256": "e979ee4aa1ce2710144531967e2e10501bf889cb4b9a3789028cab3e0fa8f818",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ferdium/ferdium-app/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"Ferdium-linux-\" + $version + \"-arm64.deb\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/ferdium/ferdium-app/releases/download/v7.2.3/Ferdium-linux-7.2.3.tar.gz",
      "sha256": "7c7d9cf4c6484ba63d09665ffc95a91134ca040423be0117709b58777abcc3d4",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ferdium/ferdium-app/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"Ferdium-linux-\" + $version + \".tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "script",
      "dest-filename": "ferdium.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "exec zypak-wrapper /app/Ferdium/ferdium \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "org.ferdium.Ferdium.metainfo.xml"
     }
    ]
   }
  ]
 }
}