{
 "app_id": "com.github.emmanueltouzery.projectpad",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.emmanueltouzery.projectpad/master/com.github.emmanueltouzery.projectpad.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:07:34.902163+00:00",
 "manifest": {
  "app-id": "com.github.emmanueltouzery.projectpad",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "projectpad-gtk4",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--share=network",
   "--talk-name=org.freedesktop.secrets"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/projectpad/cargo"
   }
  },
  "cleanup": [
   "/include",
   "/man",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "*.la*",
   "*.a"
  ],
  "modules": [
   {
    "name": "tcl-8.6.10",
    "subdir": "unix",
    "config-opts": [
     "--enable-shared=no"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "5196dbf6638e3df8d5c87b5815c8c2b758496eb6f0e41446596c9a4e638d87ed",
      "url": "https://prdownloads.sourceforge.net/tcl/tcl8.6.10-src.tar.gz"
     }
    ]
   },
   {
    "name": "sqlcipher-4.4.1",
    "config-opts": [
     "--enable-tempstore=yes",
     "CFLAGS=-DSQLITE_HAS_CODEC",
     "LDFLAGS=-lcrypto"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "a36ed7c879a5e9af1054942201c75fc56f1db22e46bf6c2bbae3975dfeb6782d",
      "url": "https://github.com/sqlcipher/sqlcipher/archive/v4.4.1.tar.gz"
     }
    ]
   },
   {
    "name": "p7zip",
    "no-autogen": true,
    "make-args": [
     "7z"
    ],
    "make-install-args": [
     "DEST_HOME=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/p7zip-project/p7zip/archive/refs/tags/v17.05.tar.gz",
      "sha256": "d2788f892571058c08d27095c22154579dfefb807ebe357d145ab2ddddefb1a6",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/p7zip-project/p7zip/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://github.com/p7zip-project/p7zip/archive/refs/tags/\\($version).tar.gz\""
      }
     }
    ]
   },
   {
    "name": "projectpad",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir projectpad-gtk4/fontawesome-5.13.0 && mv svgs projectpad-gtk4/fontawesome-5.13.0",
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "install -Dm755 ./target/release/projectpad-gtk4 -t /app/bin/",
     "install -Dm644 ./flatpak/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 ./projectpad-gtk4/${FLATPAK_ID}.desktop -t /app/share/applications/",
     "install -Dm644 ./projectpad-gtk4/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/emmanueltouzery/projectpad2.git",
      "commit": "8c9a52722a327f61008e567d390b65099fc901a1"
     },
     "cargo-sources.json",
     {
      "type": "archive",
      "sha256": "2985b9ba7aeb5cbd02f6ed4ccac0960ef5bed27269064956a6897bd7caa129f1",
      "url": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.13.0.tgz"
     }
    ]
   }
  ]
 }
}