{
 "app_id": "com.retrodev.blastem",
 "source_url": "https://raw.githubusercontent.com/flathub/com.retrodev.blastem/master/com.retrodev.blastem.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=home:ro",
  "--filesystem=xdg-run/gvfs:ro"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:08:38.734261+00:00",
 "manifest": {
  "app-id": "com.retrodev.blastem",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "blastem",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=home:ro",
   "--filesystem=xdg-run/gvfs:ro"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   "shared-modules/glew/glew.json",
   {
    "name": "blastem",
    "buildsystem": "simple",
    "build-commands": [
     "DATA_PATH=/app/share/blastem/ CONFIG_PATH=/app/etc/ make blastem -j $FLATPAK_BUILDER_N_JOBS",
     "install -m0755 -D blastem /app/bin/blastem.bin",
     "install -m0755 -D blastem.sh /app/bin/blastem",
     "install -d /app/share/blastem/",
     "cp -r shaders/ images/ gamecontrollerdb.txt rom.db systems.cfg /app/share/blastem/",
     "install -m0644 -D default.cfg -t /app/etc/",
     "install -m0644 -D ${FLATPAK_ID}.png -t /app/share/icons/hicolor/256x256/apps/",
     "install -m0644 -D com.retrodev.blastem.desktop -t /app/share/applications/",
     "install -m0644 -D com.retrodev.blastem.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.retrodev.com/repos/blastem/archive/2b2a182f4522.tar.bz2",
      "sha256": "c1afc02562d62d30e06c3e58c9d13e6e50325c5c65ba5d3111c2b32cdd785591"
     },
     {
      "type": "script",
      "dest-filename": "blastem.sh",
      "commands": [
       "mkdir -p $XDG_CONFIG_HOME/blastem/ $XDG_DATA_HOME/blastem",
       "exec /app/bin/blastem.bin \"$@\""
      ]
     },
     {
      "type": "patch",
      "paths": [
       "0001-Add-support-for-Flatpak-config-data-dir-variables.patch"
      ]
     },
     {
      "type": "file",
      "path": "com.retrodev.blastem.png"
     },
     {
      "type": "file",
      "path": "com.retrodev.blastem.desktop"
     },
     {
      "type": "file",
      "path": "com.retrodev.blastem.metainfo.xml"
     }
    ]
   }
  ]
 }
}