{
 "app_id": "dev.bsnes.bsnes",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.bsnes.bsnes/master/dev.bsnes.bsnes.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=/run/media",
  "--filesystem=xdg-config/gtk-3.0:ro"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:09:33.910083+00:00",
 "manifest": {
  "app-id": "dev.bsnes.bsnes",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "bsnes",
  "rename-desktop-file": "bsnes.desktop",
  "rename-icon": "bsnes",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=x11",
   "--device=all",
   "--filesystem=home",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--filesystem=xdg-config/gtk-3.0:ro"
  ],
  "modules": [
   {
    "name": "bsnes",
    "buildsystem": "simple",
    "build-commands": [
     "make -j $FLATPAK_BUILDER_N_JOBS -C bsnes install build=release local=false hiro=gtk3 prefix=$FLATPAK_DEST",
     "install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/bsnes-emu/bsnes.git",
      "commit": "ae5cc6010b16e7803f36548a8bf1d915ce6e6c10"
     },
     {
      "type": "patch",
      "path": "0001-load-optimal-drivers.patch"
     },
     {
      "type": "file",
      "path": "dev.bsnes.bsnes.metainfo.xml"
     }
    ]
   }
  ]
 }
}