{
 "app_id": "com.yubico.yubioath",
 "source_url": "https://raw.githubusercontent.com/flathub/com.yubico.yubioath/master/com.yubico.yubioath.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pcsc",
  "--socket=wayland",
  "--device=all",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T06:36:06.780948+00:00",
 "manifest": {
  "app-id": "com.yubico.yubioath",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "command": "authenticator",
  "cleanup": [
   "/bin/pcsc-spy",
   "/include",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pcsc",
   "--share=ipc",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.secrets",
   "--device=all",
   "--require-version=1.3.2",
   "--persist=.ykman"
  ],
  "modules": [
   {
    "name": "pcsc-lite",
    "buildsystem": "meson",
    "config-opts": [
     "-Dlibudev=false",
     "-Dlibsystemd=false",
     "-Dpolkit=false"
    ],
    "post-install": [
     "rm /app/sbin/pcscd",
     "rmdir /app/sbin || true"
    ],
    "cleanup": [
     "/lib/libpcscspy.so",
     "/lib/libpcsclite.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://pcsclite.apdu.fr/files/pcsc-lite-2.5.2.tar.xz",
      "sha256": "60a08942d8c00a1d86a3bf4c64eddbf7a5569c7c54f6904e3f07801bb5316acd",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2611,
       "url-template": "https://pcsclite.apdu.fr/files/pcsc-lite-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "yubioath-desktop",
    "buildsystem": "simple",
    "build-commands": [
     "rm -r desktop_integration.sh README.adoc linux_support/com.yubico.yubioath.desktop",
     "mv authenticator /app/bin/authenticator",
     "mv data/ /app/bin/data",
     "mv helper/ /app/bin/helper",
     "mv lib/ /app/bin/lib",
     "mkdir -p /app/share/applications",
     "mv com.yubico.yubioath.desktop /app/share/applications/com.yubico.yubioath.desktop",
     "mkdir -p /app/share/icons/hicolor/128x128/apps",
     "mv linux_support/com.yubico.yubioath.png /app/share/icons/hicolor/128x128/apps/com.yubico.yubioath.png",
     "mkdir -p /app/share/appdata",
     "mv com.yubico.yubioath.appdata.xml /app/share/appdata/com.yubico.yubioath.appdata.xml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Yubico/yubioath-flutter/releases/download/7.4.1/yubico-authenticator-7.4.1-linux.tar.gz",
      "sha256": "5c8f49cf3653ae9dd3911b53ca60475b03c8c957eb7385b1bd3d49ec4767ddac",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Yubico/yubioath-flutter/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"yubico-authenticator-\" + $version + \"-linux.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "com.yubico.yubioath.appdata.xml"
     },
     {
      "type": "file",
      "path": "com.yubico.yubioath.desktop"
     }
    ]
   }
  ]
 }
}