{
 "app_id": "io.ente.auth",
 "source_url": "https://raw.githubusercontent.com/flathub/io.ente.auth/master/io.ente.auth.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.secrets",
  "--system-talk-name=net.reactivated.Fprint",
  "--system-talk-name=org.freedesktop.PolicyKit1"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-18T12:00:21.791690+00:00",
 "manifest": {
  "app-id": "io.ente.auth",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "enteauth",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-download",
   "--share=network",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.secrets",
   "--system-talk-name=net.reactivated.Fprint",
   "--system-talk-name=org.freedesktop.PolicyKit1",
   "--env=LD_LIBRARY_PATH=/app/lib"
  ],
  "rename-appdata-file": "enteauth.appdata.xml",
  "rename-desktop-file": "enteauth.desktop",
  "rename-icon": "enteauth",
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/pkgconfig",
   "/share/help",
   "/share/man",
   "/share/vala"
  ],
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "fprintd",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.freedesktop.org/libfprint/fprintd.git",
      "tag": "v1.94.5",
      "commit": "b54a007ccf58ac0ae074c7151b223f35cbd17306",
      "x-checker-data": {
       "type": "git",
       "url": "https://gitlab.freedesktop.org/libfprint/fprintd.git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "build-commands": [
     "meson setup builddir --prefix=${FLATPAK_DEST} -Dpam=false -Dman=false -Dsystemd=false",
     "ninja -C builddir",
     "install -Dm755 builddir/utils/fprintd-verify ${FLATPAK_DEST}/bin/fprintd-verify",
     "install -Dm755 builddir/utils/fprintd-list ${FLATPAK_DEST}/bin/fprintd-list"
    ],
    "modules": [
     {
      "name": "libgusb",
      "buildsystem": "meson",
      "config-opts": [
       "-Dtests=false",
       "-Dtests=false",
       "-Ddocs=false"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/hughsie/libgusb.git",
        "tag": "0.4.9",
        "commit": "ed31c8134d80d006bd45450e84180be2a7c0742e",
        "x-checker-data": {
         "type": "git",
         "url": "https://github.com/hughsie/libgusb.git",
         "tag-pattern": "^([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "libfprint",
      "buildsystem": "meson",
      "config-opts": [
       "-Dudev_hwdb=disabled",
       "-Dudev_rules=disabled",
       "-Ddoc=false",
       "-Dinstalled-tests=false"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://gitlab.freedesktop.org/libfprint/libfprint.git",
        "tag": "v1.94.100",
        "commit": "80a4b5ec612892c5c056c48dddaa561452cf37ec",
        "x-checker-data": {
         "type": "git",
         "url": "https://gitlab.freedesktop.org/libfprint/libfprint.git",
         "tag-pattern": "^v([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "zenity",
      "buildsystem": "meson",
      "sources": [
       {
        "type": "archive",
        "url": "https://download.gnome.org/sources/zenity/4.0/zenity-4.0.5.tar.xz",
        "sha256": "8a3ffe7751bed497a758229ece07be9114ad4e46a066abae4e5f31d6da4c0e9e"
       }
      ]
     }
    ]
   },
   {
    "name": "enteauth",
    "buildsystem": "simple",
    "build-commands": [
     "ln -s /app/lib/libappindicator3.so /app/lib/libayatana-appindicator3.so.1",
     "ln -s /app/lib/libappindicator3.so /app/lib/libayatana-indicator3.so.7",
     "ln -s /app/lib/libappindicator3.so /app/lib/libayatana-ido3-0.4.so.0",
     "bsdtar --to-stdout -xf ente-auth.deb data.* | bsdtar -xf -",
     "cp -a usr/share/. ${FLATPAK_DEST}/share/ && rm -rf usr/share",
     "sed -i -E 's#(<release version=\"4\\.4(\\.[0-9]+)?\" date=\")[0-9]{4}-[0-9]{2}-[0-9]{2}(\" */>)#\\1'\"$(date +%F)\"'\\3#' ${FLATPAK_DEST}/share/metainfo/enteauth.appdata.xml",
     "ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libsqlite3.so.0 ${FLATPAK_DEST}/lib/libsqlite3.so",
     "ln -s ${FLATPAK_DEST}/share/enteauth/enteauth ${FLATPAK_DEST}/bin/enteauth"
    ],
    "sources": [
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/ente-io/ente/releases/download/auth-v4.4.25/ente-auth-v4.4.25-x86_64.deb",
      "sha256": "00ff315f040ee69dd1100d74ecf4ddf0fabd246c796d17c6170dc84172ca38af",
      "dest-filename": "ente-auth.deb",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ente-io/ente/releases",
       "version-query": "[.[] | select(.draft == false and (.tag_name | startswith(\"auth-v\")) and .prerelease == false)][0].tag_name | sub(\"^auth-v\"; \"\")",
       "url-query": "\"https://github.com/ente-io/ente/releases/download/auth-v\" + $version + \"/ente-auth-v\" + $version + \"-x86_64.deb\""
      }
     }
    ]
   }
  ]
 }
}