{
 "app_id": "com.nexusmods.vortex",
 "source_url": "https://raw.githubusercontent.com/Nexus-Mods/Vortex/master/flatpak/com.nexusmods.vortex.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=dri",
  "--share=network",
  "--filesystem=host",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--system-talk-name=org.freedesktop.UDisks2",
  "--talk-name=org.freedesktop.Flatpak",
  "--env=DOTNET_ROOT=/app/lib/dotnet",
  "--env=IGNORE_UPDATES=yes",
  "--env=IS_FLATPAK=true",
  "--env=ELECTRON_TRASH=gio",
  "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:02:29.257593+00:00",
 "manifest": {
  "app-id": "com.nexusmods.vortex",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "run.sh",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24",
   "org.freedesktop.Sdk.Extension.dotnet9"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/dotnet9/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet9/lib",
   "env": {
    "ELECTRON_SKIP_BINARY_DOWNLOAD": "1",
    "npm_config_cache": "/run/build/vortex/flatpak-node/npm-cache",
    "npm_config_nodedir": "/usr/lib/sdk/node24",
    "npm_config_offline": "true",
    "XDG_CACHE_HOME": "/run/build/vortex/flatpak-node/cache",
    "YARN_CACHE_FOLDER": "/run/build/vortex/flatpak-node/yarn-cache",
    "YARN_IGNORE_ENGINES": "1",
    "YARN_OFFLINE_MIRROR": "/run/build/vortex/flatpak-node/yarn-mirror",
    "YARN_OFFLINE_MIRROR_PRUNING": "false",
    "DOTNET_CLI_TELEMETRY_OPTOUT": "1",
    "DOTNET_NOLOGO": "1",
    "DOTNET_ROOT": "/usr/lib/sdk/dotnet9/lib",
    "DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "1",
    "NO_PARALLEL": "1",
    "VORTEX_SKIP_SUBMODULES": "1"
   }
  },
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--share=network",
   "--filesystem=host",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--talk-name=org.freedesktop.Flatpak",
   "--env=DOTNET_ROOT=/app/lib/dotnet",
   "--env=IGNORE_UPDATES=yes",
   "--env=IS_FLATPAK=true",
   "--env=ELECTRON_TRASH=gio",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "dotnet-runtime",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet9/bin/install.sh"
    ]
   },
   {
    "name": "vortex",
    "buildsystem": "simple",
    "build-commands": [
     "cp flatpak/yarnrc .yarnrc",
     "cat > NuGet.Config <<'EOF'\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n  <packageSources>\n    <clear />\n    <add key=\"offline\" value=\"flatpak-nuget-sources\" />\n  </packageSources>\n</configuration>\nEOF\n",
     "yarn install --non-interactive --check-files --frozen-lockfile",
     "yarn run build",
     "yarn run _install_app",
     "yarn run subprojects_app",
     "yarn run _assets_app",
     "yarn run build_dist",
     "yarn electron-builder --config electron-builder-config.json --publish never --linux dir",
     "install -Dm755 flatpak/run.sh /app/bin/run.sh",
     "install -Dm644 flatpak/com.nexusmods.vortex.desktop /app/share/applications/com.nexusmods.vortex.desktop",
     "install -Dm644 assets/images/vortex.png /app/share/icons/hicolor/256x256/apps/com.nexusmods.vortex.png",
     "install -Dm644 flatpak/com.nexusmods.vortex.metainfo.xml /app/share/metainfo/com.nexusmods.vortex.metainfo.xml",
     "install -d /app/main",
     "cp -a dist/linux*-unpacked/. /app/main/"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     },
     "generated-sources.json",
     "generated-nuget-sources.json"
    ]
   }
  ]
 }
}