{
 "app_id": "com.github.shonumi.gbe-plus",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.shonumi.gbe-plus/master/com.github.shonumi.gbe-plus.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:50.049315+00:00",
 "manifest": {
  "app-id": "com.github.shonumi.gbe-plus",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "gbe_plus_qt",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--device=all",
   "--socket=pulseaudio",
   "--share=network",
   "--filesystem=home"
  ],
  "modules": [
   {
    "name": "SDL_net",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz",
      "sha256": "15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21"
     }
    ]
   },
   {
    "name": "gbe-plus",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DLINK_CABLE=on"
    ],
    "no-make-install": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/shonumi/gbe-plus/archive/refs/tags/1.10.tar.gz",
      "sha256": "d9ebcb361aa9066fe065edd3f6f12305d3c44dd85c90e27e79ef6c69d9639c3b"
     },
     {
      "type": "patch",
      "path": "0001-Use-XDG_CONFIG_HOME-as-the-root-of-the-config-path.patch"
     },
     {
      "type": "script",
      "dest-filename": "gbe_plus",
      "commands": [
       "mkdir -p $XDG_CONFIG_HOME/.gbe_plus/",
       "cp -ar /app/share/gbe_plus/data/ $XDG_CONFIG_HOME/.gbe_plus/",
       "if ! test -f $XDG_CONFIG_HOME/.gbe_plus/gbe.ini ; then cp /app/share/gbe_plus/gbe.ini $XDG_CONFIG_HOME/.gbe_plus/ ; fi",
       "exec /app/libexec/gbe_plus \"$@\""
      ]
     },
     {
      "type": "script",
      "dest-filename": "gbe_plus_qt",
      "commands": [
       "mkdir -p $XDG_CONFIG_HOME/.gbe_plus/",
       "cp -ar /app/share/gbe_plus/data/ $XDG_CONFIG_HOME/.gbe_plus/",
       "if ! test -f $XDG_CONFIG_HOME/.gbe_plus/gbe.ini ; then cp /app/share/gbe_plus/gbe.ini $XDG_CONFIG_HOME/.gbe_plus/ ; fi",
       "exec /app/libexec/gbe_plus_qt \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "com.github.shonumi.gbe-plus.desktop"
     },
     {
      "type": "file",
      "path": "com.github.shonumi.gbe-plus.appdata.xml"
     }
    ],
    "post-install": [
     "install -Dm644 com.github.shonumi.gbe-plus.appdata.xml /app/share/appdata/com.github.shonumi.gbe-plus.appdata.xml",
     "install -m0755 -D src/qt/gbe_plus_qt /app/libexec/gbe_plus_qt",
     "install -m0755 -D src/gbe_plus /app/libexec/gbe_plus",
     "install -m0755 -D gbe_plus /app/bin/gbe_plus",
     "install -m0755 -D gbe_plus_qt /app/bin/gbe_plus_qt",
     "install -d /app/share/gbe_plus/",
     "cp -ar src/data/ /app/share/gbe_plus/",
     "cp src/gbe.ini /app/share/gbe_plus/",
     "install -m0644 -D src/data/icons/gbe_plus.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -m0644 -D com.github.shonumi.gbe-plus.desktop /app/share/applications/com.github.shonumi.gbe-plus.desktop"
    ]
   }
  ]
 }
}