{
 "app_id": "io.github.klorfmorf.Goemon64Recomp",
 "source_url": "https://raw.githubusercontent.com/fpiesche/flatpak-builds/main/apps/io.github.klorfmorf.Goemon64Recomp/io.github.klorfmorf.Goemon64Recomp.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:50.921119+00:00",
 "manifest": {
  "app-id": "io.github.klorfmorf.Goemon64Recomp",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "io.github.klorfmorf.Goemon64Recomp.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/klorfmorf/Goemon64Recomp/releases/download/v0.2.0-dev/Goemon64Recompiled-Linux-ARM64-Release.zip",
      "dest-filename": "recomp.zip",
      "sha256": "134fc51de50d8aba05fe9b13c069598030e9588d2b83304e1ace925c135f321b",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/klorfmorf/Goemon64Recomp/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | test(\"^Goemon64Recompiled.*Linux-ARM64-Release.zip$\")).browser_download_url"
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/klorfmorf/Goemon64Recomp/releases/download/v0.2.0-dev/Goemon64Recompiled-Linux-X64-Release.zip",
      "dest-filename": "recomp.zip",
      "sha256": "73e0deb9fab6deb40365708ca4c8ef5ef2d06e54160a9eb089655b063b361f0d",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/klorfmorf/Goemon64Recomp/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | test(\"^Goemon64Recompiled.*Linux-X64-Release.zip$\")).browser_download_url"
      }
     }
    ],
    "build-commands": [
     "tar -xf Goemon64Recompiled.tar.gz --no-same-owner",
     "install -D -m755 Goemon64Recompiled -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/klorfmorf/Goemon64Recomp/tarball/v0.2.0-dev",
      "dest-filename": "recomp.tar.gz",
      "sha256": "01cb0fc9268cb1adb24d0211971c96a5e4519cc31a79879a879471ed3de92363",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/klorfmorf/Goemon64Recomp/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".tarball_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.klorfmorf.Goemon64Recomp.metainfo.xml"
     },
     {
      "type": "script",
      "dest-filename": "io.github.klorfmorf.Goemon64Recomp.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/",
       "Goemon64Recompiled"
      ]
     }
    ],
    "build-commands": [
     "desktop-file-edit --set-key=Exec --set-value=${FLATPAK_ID}.sh flatpak/io.github.klorfmorf.goemon64recomp.desktop",
     "desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} flatpak/io.github.klorfmorf.goemon64recomp.desktop",
     "install -D -m644 flatpak/io.github.klorfmorf.goemon64recomp.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -D -m644 icons/512.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/"
    ]
   }
  ]
 }
}