{
 "app_id": "dev.didley.wt",
 "source_url": "https://raw.githubusercontent.com/didley/wt/main/packaging/flatpak/dev.didley.wt.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--device=dri",
  "--filesystem=home",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T12:58:45.108749+00:00",
 "manifest": {
  "app-id": "dev.didley.wt",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "wt-gui",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "wt-gui",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin"
    },
    "build-commands": [
     "mkdir -p gui/vendor/github.com/didley/wt && cp LICENSE gui/vendor/github.com/didley/wt/ && cp -r internal gui/vendor/github.com/didley/wt/internal",
     "VERSION=$(grep -m1 -oP '(?<=<release version=\")[^\"]+' gui/build/linux/dev.didley.wt.metainfo.xml) && cd gui && go build -mod=vendor -tags desktop,production,webkit2_41 -ldflags \"-s -w -X main.version=$VERSION\" -o /app/bin/wt-gui .",
     "install -Dm644 gui/build/linux/dev.didley.wt.desktop /app/share/applications/dev.didley.wt.desktop",
     "install -Dm644 gui/build/linux/dev.didley.wt.metainfo.xml /app/share/metainfo/dev.didley.wt.metainfo.xml",
     "install -Dm644 gui/build/linux/icons/dev.didley.wt.svg /app/share/icons/hicolor/scalable/apps/dev.didley.wt.svg"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../.."
     },
     "generated-sources.yml"
    ]
   }
  ]
 }
}