{
 "app_id": "ca.mesen.Mesen2",
 "source_url": "https://raw.githubusercontent.com/joshas/Mesen2-flatpak/main/ca.mesen.Mesen2.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=all",
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--filesystem=home:ro",
  "--persist=.config/Mesen2",
  "--env=DOTNET_ROOT=/app/lib/dotnet"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:04:04.535295+00:00",
 "manifest": {
  "app-id": "ca.mesen.Mesen2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet8",
   "org.freedesktop.Sdk.Extension.llvm19"
  ],
  "command": "Mesen",
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet8/bin",
   "append-path": "/usr/lib/sdk/dotnet8/bin:/usr/lib/sdk/llvm19/bin",
   "prepend-ld-library-path": "/usr/lib/sdk/llvm19/lib",
   "append-ld-library-path": "/usr/lib/sdk/dotnet8/lib",
   "env": {
    "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/dotnet8/lib/pkgconfig"
   }
  },
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=fallback-x11",
   "--filesystem=home:ro",
   "--persist=.config/Mesen2",
   "--env=DOTNET_ROOT=/app/lib/dotnet"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet8/bin/install.sh"
    ]
   },
   {
    "name": "Mesen2",
    "sources": [
     "sources-app.json",
     "sources-runtime.json",
     {
      "type": "git",
      "url": "https://github.com/SourMesen/Mesen2.git",
      "commit": "fabc9a62174f8734a113df6d244f5539ef6b8fcf"
     },
     {
      "type": "patch",
      "path": "makefile.patch"
     },
     {
      "type": "dir",
      "path": "."
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "make -j$(nproc)",
     "install -D /run/build/Mesen2/bin/linux-x64/Release/linux-x64/publish/Mesen /app/bin/Mesen",
     "install -Dm644 mesen.png /app/share/icons/hicolor/512x512/apps/ca.mesen.Mesen2.png",
     "install -Dm644 mesen.desktop /app/share/applications/ca.mesen.Mesen2.desktop",
     "install -Dm644 metainfo.xml /app/share/metainfo/ca.mesen.Mesen2.metainfo.xml"
    ]
   }
  ]
 }
}