{
 "app_id": "io.github.alyraffauf.Switchyard",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.alyraffauf.Switchyard/master/io.github.alyraffauf.Switchyard.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=/var/lib/flatpak:ro",
  "--filesystem=/var/lib/snapd:ro",
  "--filesystem=xdg-data/applications:ro",
  "--filesystem=host:ro",
  "--filesystem=xdg-data/flatpak:ro",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:10:34.481944+00:00",
 "manifest": {
  "app-id": "io.github.alyraffauf.Switchyard",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "switchyard",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=/var/lib/flatpak:ro",
   "--filesystem=/var/lib/snapd:ro",
   "--filesystem=host:ro",
   "--filesystem=xdg-data/applications:ro",
   "--filesystem=xdg-data/flatpak:ro"
  ],
  "modules": [
   {
    "name": "glib",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/glib/2.88/glib-2.88.0.tar.xz",
      "sha256": "3546251ccbb3744d4bc4eb48354540e1f6200846572bab68e3a2b7b2b64dfd07"
     },
     {
      "type": "patch",
      "path": "build-aux/flatpak/glib-appinfo.patch"
     }
    ]
   },
   {
    "name": "switchyard",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin",
     "env": {
      "GOROOT": "/usr/lib/sdk/golang",
      "GOPATH": "/run/build/switchyard/go",
      "GOMODCACHE": "/run/build/switchyard/go/pkg/mod",
      "GOCACHE": "/run/ccache/go-build-cache",
      "GOPROXY": "off",
      "GOSUMDB": "off",
      "CGO_ENABLED": "1"
     }
    },
    "build-commands": [
     ". /usr/lib/sdk/golang/enable.sh\nmkdir -p \"$GOCACHE\"\ngo build -mod=mod -modcacherw -trimpath -o switchyard-bin ./cmd/switchyard\n",
     "install -Dm755 switchyard-bin /app/bin/switchyard-bin",
     "install -Dm755 flatpak/switchyard-wrapper.sh /app/bin/switchyard",
     "install -Dm644 data/io.github.alyraffauf.Switchyard.desktop /app/share/applications/io.github.alyraffauf.Switchyard.desktop",
     "install -Dm644 data/io.github.alyraffauf.Switchyard.metainfo.xml /app/share/metainfo/io.github.alyraffauf.Switchyard.metainfo.xml",
     "install -Dm644 data/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg /app/share/icons/hicolor/scalable/apps/io.github.alyraffauf.Switchyard.svg"
    ],
    "sources": [
     "go-modules.json",
     {
      "type": "git",
      "url": "https://github.com/alyraffauf/switchyard",
      "tag": "v0.17.2",
      "commit": "fd9c5dbfe32f30dae90bd7c4a29c450f657956ae"
     }
    ]
   }
  ]
 }
}