{
 "app_id": "io.github.openhv.OpenHV",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.openhv.OpenHV/master/io.github.openhv.OpenHV.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:11:51.849422+00:00",
 "manifest": {
  "app-id": "io.github.openhv.OpenHV",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "openhv",
  "rename-desktop-file": "openhv.desktop",
  "rename-appdata-file": "openhv.metainfo.xml",
  "rename-icon": "openhv",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet6"
  ],
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   "shared-modules/lua5.1/lua-5.1.5.json",
   {
    "name": "OpenHV",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/dotnet6/bin",
     "append-ld-library-path": "/usr/lib/sdk/dotnet6/lib",
     "env": [
      "DOTNET_CLI_TELEMETRY_OPTOUT=true",
      "DOTNET_NOLOGO=true"
     ],
     "arch": {
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      },
      "aarch64": {
       "env": {
        "RUNTIME": "linux-arm64"
       }
      }
     }
    },
    "build-commands": [
     "cd engine && dotnet publish --source ./nuget-sources -c Release -p:TargetPlatform=unix-generic -p:CopyGenericLauncher=TRUE -p:CopyCncDll=FALSE -p:CopyD2kDll=FALSE -o ${FLATPAK_DEST}/lib/openhv --runtime $RUNTIME --self-contained true",
     "mkdir bin && cd engine && ./configure-system-libraries.sh && mv bin/*.so /app/lib/openhv/",
     "dotnet publish --source ./nuget-sources -c Release -o ${FLATPAK_DEST}/lib/openhv --self-contained true",
     "make install-executables install-metadata install-data prefix=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OpenRA/OpenRA",
      "tag": "release-20250330",
      "dest": "engine"
     },
     {
      "type": "shell",
      "commands": [
       "cd engine && make version VERSION=release-20250330"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/OpenRA/GeoIP-Database/releases/download/monthly/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP",
      "dest": "engine",
      "sha256": "a0833acb3832c18dd53050256da0a93938899e3dac0c6e113889bc41603b119d"
     },
     "openra-x64-nuget.json",
     "openra-arm64-nuget.json",
     {
      "type": "git",
      "url": "https://github.com/OpenHV/OpenHV",
      "tag": "20250725"
     },
     {
      "type": "shell",
      "commands": [
       "make version"
      ]
     },
     "openhv-nuget.json"
    ]
   }
  ]
 }
}