{
 "app_id": "com.getmailspring.Mailspring",
 "source_url": "https://raw.githubusercontent.com/flathub/com.getmailspring.Mailspring/master/com.getmailspring.Mailspring.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.kwalletd5",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.kde.kwalletd6"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-20T15:15:35.192027+00:00",
 "manifest": {
  "app-id": "com.getmailspring.Mailspring",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node26"
  ],
  "command": "mailspring",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.kwalletd5",
   "--talk-name=org.kde.kwalletd6",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "modules": [
   {
    "name": "libctemplate",
    "buildsystem": "autotools",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OlafvdSpek/ctemplate/archive/8352c4135699cb18e75f8005b46da681864de04d.zip",
      "sha256": "3f4be87ae08ae45f9f50476e721f79137966908f5f42a18ff966f925e00b78e3"
     }
    ],
    "cleanup": [
     "/bin",
     "/lib/*_nothreads.*"
    ]
   },
   {
    "name": "libtidy",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "license-files": [
     "README/LICENSE.md"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/htacg/tidy-html5/archive/refs/tags/5.8.0.tar.gz",
      "sha256": "59c86d5b2e452f63c5cdb29c866a12a4c55b1741d7025cf2f3ce0cde99b0660e",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13267,
       "stable-only": true,
       "url-template": "https://github.com/htacg/tidy-html5/archive/refs/tags/$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/bin"
    ]
   },
   {
    "name": "libcares",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCARES_BUILD_TOOLS=Off",
     "-DCARES_SYMBOL_HIDING=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/c-ares/c-ares/releases/download/v1.34.8/c-ares-1.34.8.tar.gz",
      "sha256": "c222b6d681096f9444d2c4863d2c1174019e27cacca0a4a5c114d36dd7d7bf78",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5840,
       "stable-only": true,
       "url-template": "https://github.com/c-ares/c-ares/releases/download/v$version/c-ares-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "addr2line",
    "buildsystem": "autotools",
    "builddir": true,
    "no-make-install": true,
    "config-opts": [
     "--disable-gdb",
     "--disable-gprof",
     "--disable-gold",
     "--disable-ld",
     "--disable-nls"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/pub/gnu/binutils/binutils-2.47.tar.gz",
      "sha256": "15f5abd0db9cf8ea116f516a9ce12bc1cefef491ef9e50942868093d8f92a6f3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7981,
       "stable-only": true,
       "url-template": "https://ftp.gnu.org/pub/gnu/binutils/binutils-$version.tar.gz"
      }
     }
    ],
    "post-install": [
     "install -Dm755 binutils/addr2line /app/bin/addr2line"
    ]
   },
   {
    "name": "libkrb5",
    "buildsystem": "autotools",
    "builddir": true,
    "subdir": "src",
    "license-files": [
     "NOTICE"
    ],
    "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"
      }
     },
     {
      "type": "patch",
      "path": "patches/libkrb5-strchr.patch"
     }
    ],
    "cleanup": [
     "/bin",
     "/sbin",
     "/var",
     "/share/et"
    ]
   },
   {
    "name": "libsasl2",
    "buildsystem": "autotools",
    "builddir": true,
    "build-options": {
     "cflags": "--std=gnu17 -DHAVE_TIME_H=1"
    },
    "config-opts": [
     "--enable-login",
     "--enable-ntlm",
     "--with-gss_impl=mit"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.28/cyrus-sasl-2.1.28.tar.gz",
      "sha256": "7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13280,
       "stable-only": true,
       "url-template": "https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-$version/cyrus-sasl-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "patches/libsasl2-time.patch"
     }
    ],
    "cleanup": [
     "/sbin"
    ]
   },
   {
    "name": "Mailspring",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Foundry376/Mailspring.git",
      "tag": "1.25.0",
      "commit": "add26bb960192f512755c65c30c6da281e05fac5"
     },
     {
      "type": "file",
      "path": "build.sh"
     },
     {
      "type": "patch",
      "paths": [
       "patches/mailsync-cmake.patch",
       "patches/mailspring-postinstall.patch",
       "patches/mailspring-build.patch"
      ]
     },
     {
      "type": "file",
      "path": "mailspring.sh"
     },
     "generated-sources.json"
    ],
    "build-options": {
     "prepend-path": "/usr/lib/sdk/node26/bin",
     "env": {
      "XDG_CACHE_HOME": "/run/build/Mailspring/flatpak-node/cache",
      "npm_config_cache": "/run/build/Mailspring/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "./build.sh"
    ],
    "cleanup": [
     "/bin/libetpan-config",
     "/share/mailspring/chrome-sandbox",
     "/lib/libetpan.so*"
    ]
   },
   {
    "name": "setup-separate-locales",
    "buildsystem": "simple",
    "build-commands": [
     "./setup-separate-locales ${FLATPAK_DEST}/share/mailspring"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "setup-separate-locales",
      "commands": [
       "set -e\n\nAPP_LOCALES_ROOT=\"$1/locales\"\nRUNTIME_LOCALES_ROOT=\"${FLATPAK_DEST}/share/runtime/locale\"\n\nfor lang in \"${APP_LOCALES_ROOT}\"/*.pak; do\n  LOCALE=\"$(basename -s .pak \"${lang}\")\"\n  runtime_locale_dir=\"${RUNTIME_LOCALES_ROOT}/${LOCALE%%-*}/\"\n  install -Dm644 -t \"${runtime_locale_dir}\" \"${lang}\"\n  ln -sf \"${runtime_locale_dir}$(basename \"${lang}\")\" \"${APP_LOCALES_ROOT}/$(basename \"${lang}\")\"\ndone\n"
      ]
     }
    ]
   }
  ],
  "cleanup": [
   "/include",
   "/share/doc",
   "/share/man",
   "/share/examples",
   "/lib/cmake",
   "/lib/pkgconfig",
   "*.a",
   "*.la"
  ]
 }
}