{
 "app_id": "io.github.banjorecomp.banjorecomp",
 "source_url": "https://raw.githubusercontent.com/fpiesche/flatpak-builds/main/apps/io.github.banjorecomp.banjorecomp/io.github.banjorecomp.banjorecomp.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=all",
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/gamescope-0:ro"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T12:56:45.899217+00:00",
 "manifest": {
  "app-id": "io.github.banjorecomp.banjorecomp",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "io.github.banjorecomp.banjorecomp.sh",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/gamescope-0:ro"
  ],
  "build-options": {
   "strip": true,
   "no-debuginfo": true
  },
  "modules": [
   {
    "name": "recomp",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/BanjoRecomp/BanjoRecomp/releases/download/v1.0.2/BanjoRecompiled-v1.0.2-Linux-ARM64.tar.gz",
      "dest-filename": "recomp.tar.gz",
      "strip-components": 0,
      "sha256": "53515be8bc453bc32ed8cbc72e3cd06350ab4a28bd94b0aa6499d4b963a83757",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/BanjoRecomp/BanjoRecomp/releases",
       "version-query": ".[0].tag_name",
       "url-query": ".[0].assets[] | select(.name | test(\"^BanjoRecompiled.*Linux-ARM64.*.tar.gz$\")).browser_download_url"
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/BanjoRecomp/BanjoRecomp/releases/download/v1.0.2/BanjoRecompiled-v1.0.2-Linux-X64.tar.gz",
      "dest-filename": "recomp.tar.gz",
      "strip-components": 0,
      "sha256": "a34a4d361221171ea638e0165301fff817c53b9cd46167c5affd37867cfc7ad0",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/BanjoRecomp/BanjoRecomp/releases",
       "version-query": ".[0].tag_name",
       "url-query": ".[0].assets[] | select(.name | test(\"^BanjoRecompiled.*Linux-X64.*.tar.gz$\")).browser_download_url"
      }
     }
    ],
    "build-commands": [
     "install -D -m755 BanjoRecompiled -t /app/bin/",
     "install -D -m644 recompcontrollerdb.txt -t /app/bin/",
     "cp -rv assets /app/bin/"
    ]
   },
   {
    "name": "freedesktop",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://api.github.com/repos/BanjoRecomp/BanjoRecomp/tarball/v1.0.2",
      "dest-filename": "repo.tar.gz",
      "sha256": "a8bbd78567e88acd198f5c7c40ce7a11c1470be957a63fa5795ca28b3306ad05",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/BanjoRecomp/BanjoRecomp/releases",
       "version-query": ".[0].tag_name | sub(\"^v\"; \"\")",
       "url-query": ".[0].tarball_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.banjorecomp.banjorecomp.metainfo.xml"
     },
     {
      "type": "script",
      "dest-filename": "io.github.banjorecomp.banjorecomp.sh",
      "commands": [
       "export APP_FOLDER_PATH=\"${XDG_DATA_HOME}/${FLATPAK_ID}\"",
       "if [[ ! -d \"${APP_FOLDER_PATH}\" ]]; then mkdir -p ${APP_FOLDER_PATH}; fi",
       "cd /app/bin/",
       "BanjoRecompiled"
      ]
     }
    ],
    "build-commands": [
     "desktop-file-edit --set-key=Exec --set-value=${FLATPAK_ID}.sh flatpak/io.github.banjorecomp.banjorecomp.desktop",
     "desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} flatpak/io.github.banjorecomp.banjorecomp.desktop",
     "install -D -m644 flatpak/io.github.banjorecomp.banjorecomp.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -D -m644 icons/app.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/",
     "install -D -m755 ${FLATPAK_ID}.sh -t /app/bin/"
    ]
   }
  ]
 }
}