{
 "app_id": "io.github.hedge_dev.hedgemodmanager",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.hedge_dev.hedgemodmanager/master/io.github.hedge_dev.hedgemodmanager.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--filesystem=~/.steam/steam/steamapps",
  "--filesystem=/mnt",
  "--filesystem=~/.config/UnleashedRecomp",
  "--filesystem=/run/media",
  "--filesystem=~/.local/share/applications/UnleashedRecomp.desktop:ro",
  "--filesystem=/media",
  "--filesystem=~/.local/share/Steam/steamapps",
  "--filesystem=~/Games/Heroic"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:11:14.681501+00:00",
 "manifest": {
  "app-id": "io.github.hedge_dev.hedgemodmanager",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet8"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet8/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet8/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet8/lib/pkgconfig"
  },
  "command": "HedgeModManager.UI",
  "finish-args": [
   "--socket=x11",
   "--filesystem=~/.config/UnleashedRecomp",
   "--filesystem=~/.local/share/applications/UnleashedRecomp.desktop:ro",
   "--filesystem=~/.steam/steam/steamapps",
   "--filesystem=~/.local/share/Steam/steamapps",
   "--filesystem=~/Games/Heroic",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--filesystem=/mnt",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--env=DOTNET_ROOT=/app/lib/dotnet"
  ],
  "modules": [
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet8/bin/install.sh"
    ]
   },
   {
    "name": "hedge-mod-manager",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "disable-shallow-clone": true,
      "url": "https://github.com/hedge-dev/HedgeModManager.git",
      "tag": "8.0.0-beta7",
      "commit": "5fd4af7c75c585ae8e561ab80e30effb9ca745fb"
     },
     {
      "type": "file",
      "path": "io.github.hedge_dev.hedgemodmanager.metainfo.xml"
     },
     "./nuget-sources.json"
    ],
    "build-commands": [
     "dotnet publish Source/HedgeModManager.UI/HedgeModManager.UI.csproj -c Release --no-self-contained --source ./nuget-sources",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r Source/HedgeModManager.UI/bin/Release/net8.0/publish/* ${FLATPAK_DEST}/bin",
     "install -Dm644 flatpak/hedgemodmanager.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 flatpak/hedgemodmanager.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 io.github.hedge_dev.hedgemodmanager.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
    ]
   }
  ]
 }
}