{
 "app_id": "org.gnome.gitlab.somas.Apostrophe",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gnome.gitlab.somas.Apostrophe/master/org.gnome.gitlab.somas.Apostrophe.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=host",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.gtk.vfs.*"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T16:15:06.699741+00:00",
 "manifest": {
  "app-id": "org.gnome.gitlab.somas.Apostrophe",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "apostrophe",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=host",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=xdg-run/gvfsd",
   "--talk-name=org.gtk.vfs.*",
   "--env=PATH=/app/bin:/usr/bin:/app/extensions/TexLive/bin/x86_64-linux/:/app/extensions/TexLive/bin/aarch64-linux/"
  ],
  "cleanup": [
   "/lib/pkgconfig",
   "/share/vala",
   "/share/gir-1.0",
   "/share/gtk-doc"
  ],
  "add-extensions": {
   "org.gnome.gitlab.somas.Apostrophe.Plugin": {
    "directory": "extensions",
    "version": "stable",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "modules": [
   {
    "name": "typst",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/typst/cargo",
      "CARGO_NET_OFFLINE": "true"
     }
    },
    "build-commands": [
     "cargo fetch --manifest-path Cargo.toml --verbose",
     "cargo install --path . --root /app"
    ],
    "sources": [
     "cargo-typst-sources.json",
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://static.crates.io/crates/typst-cli/typst-cli-0.13.1.crate",
      "sha256": "a634de7356f417bb09250a926714f87be71777c26e1f62ce640ca2f38debb683"
     }
    ]
   },
   {
    "name": "pandoc",
    "buildsystem": "simple",
    "build-commands": [
     "cp bin/pandoc /app/bin/pandoc"
    ],
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-amd64.tar.gz",
      "sha512": "e3a64cc47f775fa1456a2a9339ecc47b442181a12cfc94b24453711b7d32d8f3b53d816cc962fe446ba9b3141a6e62e383ba3c7284529977e672480e68e0f8b5",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-amd64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-arm64.tar.gz",
      "sha512": "dc377e6447439156e41fd12c18ad07881afbe714db0764546f23b201568af612abca620411489235c0b37506651420d955fc3c71c409d4f64af3db2e505f5115",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-arm64.tar.gz\") | .browser_download_url"
      }
     }
    ]
   },
   "python3-modules.json",
   {
    "name": "fira",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/fonts/",
     "install -D otf/FiraSans-Regular.otf /app/share/fonts/",
     "install -D otf/FiraMono-Regular.otf /app/share/fonts/",
     "install -D otf/FiraMono-Bold.otf /app/share/fonts/",
     "install -D otf/FiraMono-Medium.otf /app/share/fonts/"
    ],
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/mozilla/Fira/tarball/4.202",
      "sha512": "ab9f00c7290aa252448b0730cecccfea07cd99daec09883d261cc49b88b1dadd13e951511517a359646ebd94e6cd13861f468437d26465a079cf2b86ab999356",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/mozilla/Fira/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     }
    ]
   },
   {
    "name": "revealjs",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share/apostrophe/libs/reveal.js/",
     "cp -r * /app/share/apostrophe/libs/reveal.js/"
    ],
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/hakimel/reveal.js/tarball/5.2.1",
      "sha512": "4e0de08e6b44348d4c242363d899eb353131b36ab3e83ce24266740edad245210a4ef87550ece50dd95bff1e55ad24d9bcffc6fff600df8bae14424e1ddde2a8",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/hakimel/reveal.js/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url"
      }
     }
    ]
   },
   {
    "name": "libspelling",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddocs=false",
     "-Dvapi=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libspelling/0.4/libspelling-0.4.9.tar.xz",
      "sha256": "d093fd35ae0f1c98fb58876505287fc0a885e47da9d2411d6d7cd595f34d4ebf",
      "x-checker-data": {
       "type": "gnome",
       "name": "libspelling"
      }
     }
    ]
   },
   {
    "name": "apostrophe",
    "builddir": true,
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/World/apostrophe.git",
      "tag": "v3.4",
      "commit": "c045f36e7e089134a0b2c62d85091037e5fcda4e",
      "x-checker-data": {
       "is-main-source": true,
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "post-install": [
     "install -d /app/extensions",
     "fc-cache -frv /app/share/fonts"
    ]
   }
  ]
 }
}