{
 "app_id": "net.opentabletdriver.OpenTabletDriver",
 "source_url": "https://raw.githubusercontent.com/flathub/net.opentabletdriver.OpenTabletDriver/master/net.opentabletdriver.OpenTabletDriver.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:42.311095+00:00",
 "manifest": {
  "app-id": "net.opentabletdriver.OpenTabletDriver",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "start-otd.sh",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet8"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=network",
   "--device=all"
  ],
  "modules": [
   {
    "name": "libevdev",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=disabled",
     "-Ddocumentation=disabled"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "/share"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.freedesktop.org/libevdev/libevdev.git",
      "tag": "libevdev-1.13.6",
      "commit": "139b58e135184f66a35c2401771f3d8134f097ad"
     }
    ]
   },
   {
    "name": "opentabletdriver",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "aarch64": {
       "env": {
        "RUNTIME": "linux-arm64"
       }
      },
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      }
     },
     "append-path": "/usr/lib/sdk/dotnet8/bin",
     "append-ld-library-path": "/usr/lib/sdk/dotnet8/lib",
     "prepend-pkg-config-path": "/usr/lib/sdk/dotnet8/lib/pkgconfig"
    },
    "build-commands": [
     "dotnet publish OpenTabletDriver.Console/OpenTabletDriver.Console.csproj -c Release -p:PublishSingleFile=true -r $RUNTIME --source nuget-sources -p:DebugType=None --self-contained true -o ${FLATPAK_DEST}/bin",
     "dotnet publish OpenTabletDriver.Daemon/OpenTabletDriver.Daemon.csproj -c Release -p:PublishSingleFile=true -r $RUNTIME --source nuget-sources -p:DebugType=None --self-contained true -o ${FLATPAK_DEST}/bin",
     "dotnet publish OpenTabletDriver.UX.Gtk/OpenTabletDriver.UX.Gtk.csproj -c Release -p:PublishSingleFile=true -r $RUNTIME --source nuget-sources -p:DebugType=None --self-contained true -o ${FLATPAK_DEST}/bin",
     "install -Dm644 net.opentabletdriver.OpenTabletDriver.desktop ${FLATPAK_DEST}/share/applications/net.opentabletdriver.OpenTabletDriver.desktop",
     "install -Dm644 256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/net.opentabletdriver.OpenTabletDriver.png",
     "install -Dm644 net.opentabletdriver.OpenTabletDriver.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.opentabletdriver.OpenTabletDriver.metainfo.xml",
     "install -Dm755 start-otd.sh ${FLATPAK_DEST}/bin/start-otd.sh"
    ],
    "sources": [
     "./sources/linux-x64.json",
     "./sources/linux-arm64.json",
     {
      "type": "git",
      "url": "https://github.com/OpenTabletDriver/OpenTabletDriver",
      "tag": "v0.6.7",
      "commit": "736003ed72c8bbb28033b039d5a0bb76c344145c"
     },
     {
      "type": "file",
      "path": "./net.opentabletdriver.OpenTabletDriver.desktop"
     },
     {
      "type": "file",
      "path": "./256.png"
     },
     {
      "type": "file",
      "path": "./start-otd.sh"
     },
     {
      "type": "file",
      "path": "./net.opentabletdriver.OpenTabletDriver.metainfo.xml"
     }
    ]
   }
  ]
 }
}