{
 "app_id": "com.revolutionarygamesstudio.ThriveLauncher",
 "source_url": "https://raw.githubusercontent.com/flathub/com.revolutionarygamesstudio.ThriveLauncher/master/com.revolutionarygamesstudio.ThriveLauncher.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:08:38.734263+00:00",
 "manifest": {
  "app-id": "com.revolutionarygamesstudio.ThriveLauncher",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ThriveLauncher",
  "separate-locales": false,
  "rename-icon": "thrive-launcher-icon",
  "finish-args": [
   "--share=network",
   "--device=all",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc"
  ],
  "modules": [
   {
    "name": "thrive-launcher",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true,
     "strip": false,
     "append-path": "/run/build/thrive-launcher/dotnet-sdk",
     "env": [
      "DOTNET_CLI_TELEMETRY_OPTOUT=true",
      "DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Revolutionary-Games/Thrive-Launcher.git",
      "tag": "v2.3.2",
      "commit": "0dd2b00c3953298bb1c91db857100a4648e8cab9",
      "disable-shallow-clone": true
     },
     {
      "type": "archive",
      "dest": "dotnet-sdk",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/10.0.302/dotnet-sdk-10.0.302-linux-x64.tar.gz",
      "sha256": "264a838d6f5d1a252489c7bb2e2946a579d6a881391d50ffd175a01e4d948c1c",
      "x-checker-data": {
       "type": "html",
       "url": "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/10.0/latest.version",
       "version-pattern": "^([\\d\\.a-z-]+)$",
       "url-template": "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$version/dotnet-sdk-$version-linux-x64.tar.gz"
      }
     },
     "nuget_sources.json",
     {
      "type": "file",
      "path": "com.revolutionarygamesstudio.ThriveLauncher.appdata.xml"
     }
    ],
    "build-commands": [
     "if [[ $(dotnet --list-sdks) ]]; then echo \"dotnet SDK was probably installed\"; else echo \"SDK install failed\" && exit 1; fi",
     "if (( $(stat -c%s ThriveLauncher/launcher-icon.png) < 20000)); then echo \"LFS files haven't been setup\" && exit 1; fi",
     "dotnet build Scripts --source nuget-sources",
     "dotnet run --no-build --project Scripts -- package Linux --compress false --installers false --podman false --type Flatpak --output /app/bin --output-without-subfolders --nuget-source nuget-sources",
     "install -Dm644 ThriveLauncher/Assets/Icons/16x16.png \"/app/share/icons/hicolor/16x16/apps/thrive-launcher-icon.png\"",
     "install -Dm644 ThriveLauncher/Assets/Icons/48x48.png \"/app/share/icons/hicolor/48x48/apps/thrive-launcher-icon.png\"",
     "install -Dm644 ThriveLauncher/Assets/Icons/128x128.png \"/app/share/icons/hicolor/128x128/apps/thrive-launcher-icon.png\"",
     "install -Dm644 ThriveLauncher/Assets/Icons/256x256.png \"/app/share/icons/hicolor/256x256/apps/thrive-launcher-icon.png\"",
     "install -Dm644 ThriveLauncher/Assets/Icons/512x512.png \"/app/share/icons/hicolor/512x512/apps/thrive-launcher-icon.png\"",
     "rm -f /app/bin/thrive-launcher-icon.png",
     "install -Dm644 /app/bin/ThriveLauncher.desktop \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "desktop-file-edit --set-key=\"Name\" --set-value=\"Thrive\" \"${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop\"",
     "install -Dm644 com.revolutionarygamesstudio.ThriveLauncher.appdata.xml \"${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml\""
    ]
   }
  ]
 }
}