{
 "app_id": "net.openhabittracker.OpenHabitTracker",
 "source_url": "https://raw.githubusercontent.com/flathub/net.openhabittracker.OpenHabitTracker/master/net.openhabittracker.OpenHabitTracker.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",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-download"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:36.898752+00:00",
 "manifest": {
  "id": "net.openhabittracker.OpenHabitTracker",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet10/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet10/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet10/lib/pkgconfig"
  },
  "command": "OpenHT",
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download",
   "--env=DOTNET_ROOT=/app/lib/dotnet",
   "--env=WEBKIT_DISABLE_DMABUF_RENDERER=1"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet10/bin/install.sh"
    ]
   },
   {
    "name": "OpenHabitTracker",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Jinjinov/OpenHabitTracker.git",
      "tag": "1.2.4.1",
      "commit": "1da4f7ef33068642991764c6a18766091acfd24a"
     },
     "./nuget-sources.json"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "env": {
        "RUNTIME": "linux-arm64"
       }
      },
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      }
     }
    },
    "build-commands": [
     "dotnet publish OpenHabitTracker.Blazor.Photino/OpenHabitTracker.Blazor.Photino.csproj -c Release -f net10.0 -r $RUNTIME -p:PublishSingleFile=true -p:SelfContained=true --source ./nuget-sources --source /usr/lib/sdk/dotnet10/nuget/packages",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r OpenHabitTracker.Blazor.Photino/bin/Release/net10.0/$RUNTIME/publish/* ${FLATPAK_DEST}/bin",
     "install -Dm644 net.openhabittracker.OpenHabitTracker.desktop -t /app/share/applications/",
     "install -Dm644 net.openhabittracker.OpenHabitTracker.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 net.openhabittracker.OpenHabitTracker.svg -t /app/share/icons/hicolor/scalable/apps/"
    ]
   }
  ]
 }
}