{
 "app_id": "net.openbve_project.OpenBVE",
 "source_url": "https://raw.githubusercontent.com/flathub/net.openbve_project.OpenBVE/master/net.openbve_project.OpenBVE.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:13:36.898751+00:00",
 "manifest": {
  "id": "net.openbve_project.OpenBVE",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.mono6"
  ],
  "command": "openbve",
  "rename-desktop-file": "openbve.desktop",
  "rename-icon": "openbve",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=all"
  ],
  "cleanup": [
   "*.pdb"
  ],
  "modules": [
   {
    "name": "mono",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/mono6/install.sh",
     "cp -r /usr/lib/sdk/mono6/lib/mono/gac/{Microsoft.CSharp,System.Drawing,System.Windows.Forms,System.Xml.Linq} /app/lib/mono/gac/"
    ]
   },
   {
    "name": "libgdiplus",
    "sources": [
     {
      "type": "archive",
      "url": "https://dl.winehq.org/mono/sources/libgdiplus/libgdiplus-6.2.tar.gz",
      "sha256": "683adb7d99d03f6ee7985173a206a2243f76632682334ced4cae2fcd20c83bc9"
     }
    ]
   },
   {
    "name": "openbve",
    "buildsystem": "simple",
    "build-options": {
     "prepend-path": "/usr/lib/sdk/mono6/bin"
    },
    "build-commands": [
     "mono nuget.exe restore OpenBVE.sln -Source /run/build/openbve/nuget-sources",
     "msbuild /t:build /p:Configuration=Release OpenBVE.sln",
     "rm -rf bin_release/DevTools",
     "mv bin_release /app/lib/openbve",
     "install -Dm644 -t /app/share/applications debian/openbve.desktop",
     "install -Dm644 -t /app/share/icons/hicolor/128x128/apps debian/openbve.png",
     "install -Dm644 -t /app/share/metainfo net.openbve_project.OpenBVE.metainfo.xml",
     "install -Dm755 -t /app/bin openbve"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/leezer3/OpenBVE.git",
      "tag": "1.14.0.3",
      "commit": "be96f44fc8d41aa53889bc60c3fcb13279aa2c1b",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/leezer3/OpenBVE/releases/latest",
       "tag-query": ".tag_name"
      }
     },
     {
      "type": "file",
      "url": "https://dist.nuget.org/win-x86-commandline/v7.6.0/nuget.exe",
      "sha256": "751ee5e79481626a428c1241dc7f94bca2739b32588e669715bc5fb54d8fb8a2"
     },
     "nuget-sources.yml",
     {
      "type": "script",
      "dest-filename": "openbve",
      "commands": [
       "mono /app/lib/openbve/OpenBve.exe \"$@\""
      ]
     }
    ]
   }
  ]
 }
}