{
 "app_id": "com.adilhanney.saber",
 "source_url": "https://raw.githubusercontent.com/flathub/com.adilhanney.saber/master/com.adilhanney.saber.yaml",
 "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-documents/Saber:create",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:06:52.509040+00:00",
 "manifest": {
  "app-id": "com.adilhanney.saber",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "saber",
  "separate-locales": false,
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--talk-name=org.freedesktop.secrets",
   "--filesystem=xdg-documents/Saber:create",
   "--filesystem=xdg-config/kdeglobals:ro"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig"
  ],
  "modules": [
   {
    "name": "libjsoncpp",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=release",
     "--default-library=shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.8.tar.gz",
      "sha256": "51828cf3574281d2b79ec2a1c56a9e4c20cc1103711321ea96384cffb8d2d904",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/open-source-parsers/jsoncpp/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tag_name | \"https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/\" + . + \".tar.gz\""
      }
     }
    ]
   },
   {
    "name": "zenity",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuildtype=release",
     "-Dmanpage=false"
    ],
    "cleanup": [
     "/share/applications",
     "/share/help"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/GNOME/zenity.git",
      "tag": "4.2.2",
      "commit": "c0f30c18e55b6a0cf5c2deb1c7449debb79027dc",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "saber",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm20/bin:/var/lib/rustup/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/saber/.pub-cache",
      "CARGO_HOME": "/run/build/saber/cargo",
      "RUSTUP_HOME": "/var/lib/rustup"
     }
    },
    "build-commands": [
     "./patches/pre/remove_permission_handler.sh",
     "./patches/pre/remove_proprietary_dependencies.sh",
     "setup-flutter.sh",
     "flutter config --no-cli-animations",
     "flutter build linux --no-pub",
     "cp -a $BUNDLE_PATH /app/com.adilhanney.saber",
     "mkdir -p /app/bin && ln -s /app/com.adilhanney.saber/saber /app/bin/saber",
     "install -Dm644 flatpak/com.adilhanney.saber.desktop -t /app/share/applications/",
     "install -Dm644 flatpak/com.adilhanney.saber.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 assets/icon/icon_linux.svg /app/share/icons/hicolor/scalable/apps/com.adilhanney.saber.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/saber-notes/saber.git",
      "tag": "v1.36.1",
      "commit": "a5540f8ee5e5261d52e85bf46e246f98b2395855",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+(?:\\+.*)?)$",
       "is-main-source": true
      }
     },
     "generated/sources/cargo.json",
     "generated/sources/pubspec.json"
    ],
    "modules": [
     "generated/modules/rustup-1.97.1.json",
     "generated/modules/flutter-sdk-3.47.2.json"
    ]
   }
  ]
 }
}