{
 "app_id": "com.tutanota.Tutanota",
 "source_url": "https://raw.githubusercontent.com/flathub/com.tutanota.Tutanota/master/com.tutanota.Tutanota.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--device=dri",
  "--filesystem=xdg-music",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-public-share",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/keyring",
  "--filesystem=xdg-documents",
  "--filesystem=host:ro",
  "--filesystem=xdg-desktop",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-21T12:58:58.982015+00:00",
 "manifest": {
  "id": "com.tutanota.Tutanota",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "tutanota-desktop",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=TMPDIR=/var/tmp",
   "--device=all",
   "--filesystem=host:ro",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--filesystem=xdg-music",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-public-share",
   "--filesystem=xdg-videos",
   "--filesystem=xdg-run/keyring"
  ],
  "modules": [
   {
    "name": "libsecret",
    "buildsystem": "meson",
    "config-opts": [
     "-Dmanpage=false",
     "-Dvapi=false",
     "-Dgtk_doc=false",
     "-Dintrospection=false"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "/share/man"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tutao/libsecret.git",
      "commit": "3d18f7e928d6de69457ec3d18d5ca84923191957"
     }
    ]
   },
   {
    "name": "tutanota",
    "buildsystem": "simple",
    "sources": [
     {
      "dest-filename": "tutanota-unpacked-linux.tar.gz",
      "type": "file",
      "sha256": "6747a55234c3a775670d5067449665e0afb377de69d6b3c1ccc2181162594cbf",
      "url": "https://github.com/tutao/tutanota/releases/download/tutanota-desktop-release-360.260917.0/tutanota-desktop-360.260917.0-unpacked-linux.tar.gz"
     },
     {
      "type": "script",
      "dest-filename": "tutanota-desktop.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/${FLATPAK_ID}\"",
       "exec zypak-wrapper /app/lib/tutanota/tutanota-desktop --ozone-platform-hint=auto \"$@\""
      ]
     }
    ],
    "build-commands": [
     "tar -xf tutanota-unpacked-linux.tar.gz",
     "rm tutanota-unpacked-linux.tar.gz",
     "mkdir -p /app/lib/",
     "cp -r linux-unpacked /app/lib/tutanota",
     "install -Dm644 linux-unpacked/resources/icons/icon/512.png /app/share/icons/hicolor/512x512/apps/com.tutanota.Tutanota.png",
     "install -Dm644 linux-unpacked/resources/icons/icon/64.png /app/share/icons/hicolor/64x64/apps/com.tutanota.Tutanota.png",
     "install -Dm755 tutanota-desktop.sh /app/bin/tutanota-desktop",
     "rm -rf ./linux-unpacked"
    ]
   },
   {
    "name": "metadata",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "path": "com.tutanota.Tutanota.appdata.xml"
     },
     {
      "type": "file",
      "path": "com.tutanota.Tutanota.desktop"
     }
    ],
    "build-commands": [
     "install -Dm644 com.tutanota.Tutanota.appdata.xml /app/share/appdata/com.tutanota.Tutanota.appdata.xml",
     "install -Dm644 com.tutanota.Tutanota.desktop /app/share/applications/com.tutanota.Tutanota.desktop"
    ]
   }
  ]
 }
}