{
 "app_id": "app.go2tv.go2tv",
 "source_url": "https://raw.githubusercontent.com/flathub/app.go2tv.go2tv/master/app.go2tv.go2tv.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:06:27.535505+00:00",
 "manifest": {
  "app-id": "app.go2tv.go2tv",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.ffmpeg-full": {
    "version": "25.08",
    "directory": "lib/ffmpeg",
    "add-ld-path": "."
   }
  },
  "command": "go2tv",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-run/pipewire-0"
  ],
  "build-options": {
   "env": [
    "GOBIN=/app/bin",
    "GOROOT=/usr/lib/sdk/golang"
   ]
  },
  "modules": [
   {
    "name": "go2tv",
    "buildsystem": "simple",
    "build-commands": [
     "$GOROOT/bin/go build -tags \"migrated_fynedo flatpak\" -trimpath -ldflags=\"-s -w -X main.version=$(cat version.txt)\" -o go2tv ./cmd/go2tv",
     "install -Dm00755 go2tv $FLATPAK_DEST/bin/go2tv",
     "install -Dm00644 assets/linux/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dm00644 assets/linux/$FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml",
     "install -Dm00644 assets/go2tv-icon-desktop-512.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png",
     "mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/alexballas/go2tv",
      "commit": "d0795fadf4c129f8623eb8ebf5eb492655c43760"
     },
     "go.mod.yml"
    ]
   }
  ]
 }
}