{
 "app_id": "io.github.dinosaurplanetrecomp.dino-recomp",
 "source_url": "https://raw.githubusercontent.com/fpiesche/flatpak-builds/main/apps/io.github.dinosaurplanetrecomp.dino-recomp/io.github.dinosaurplanetrecomp.dino-recomp.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=all",
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/gamescope-0:ro"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T12:56:46.877478+00:00",
 "manifest": {
  "app-id": "io.github.dinosaurplanetrecomp.dino-recomp",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "io.github.dinosaurplanetrecomp.dino-recomp.sh",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/gamescope-0:ro"
  ],
  "build-options": {
   "strip": true,
   "no-debuginfo": true
  },
  "modules": [
   {
    "name": "recomp",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/DinosaurPlanetRecomp/dino-recomp/releases/download/v0.3.0/DinosaurPlanetRecompiled-v0.3.0-Linux-x64.tar.gz",
      "dest-filename": "recomp.tar.gz",
      "sha256": "8a370cff9bfaacc4af0da9f729b5910f341d41942899cef4ce64aa7d8a4c03a2",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/dinosaurplanetrecomp/dino-recomp/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name | test(\"^DinosaurPlanetRecompiled-.*-Linux-x64.tar.gz$\")).browser_download_url"
      }
     }
    ],
    "build-commands": [
     "tar -xf recomp.tar.gz --no-same-owner",
     "install -D -m755 DinosaurPlanetRecompiled -t /app/bin/",
     "install -D -m644 gamecontrollerdb.txt -t /app/bin/",
     "cp -rv assets /app/bin/"
    ]
   },
   {
    "name": "freedesktop",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://api.github.com/repos/DinosaurPlanetRecomp/dino-recomp/tarball/v0.3.0",
      "dest-filename": "repo.tar.gz",
      "sha256": "b6cd376de6ec7d7e0a7845a639235a3379c92fd252fceada0468197a205c4f9a",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/dinosaurplanetrecomp/dino-recomp/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".tarball_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.dinosaurplanetrecomp.dino-recomp.metainfo.xml"
     },
     {
      "type": "script",
      "dest-filename": "io.github.dinosaurplanetrecomp.dino-recomp.sh",
      "commands": [
       "export APP_FOLDER_PATH=\"${XDG_DATA_HOME}/${FLATPAK_ID}\"",
       "if [[ ! -d \"${APP_FOLDER_PATH}\" ]]; then mkdir -p ${APP_FOLDER_PATH}; fi",
       "cd /app/bin/",
       "DinosaurPlanetRecompiled"
      ]
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/DinosaurPlanetRecomp/dino-recomp/refs/heads/main/icons/512.png",
      "sha256": "9395ddd6ea41cb35fcecfb82287ec77a7f39b8c3627f3a676a9d82ee650247e8",
      "dest": "icons"
     }
    ],
    "build-commands": [
     "desktop-file-edit --set-key=Exec --set-value=${FLATPAK_ID}.sh deploy/io.github.dinosaurplanetrecomp.dino_recomp.desktop",
     "desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} deploy/io.github.dinosaurplanetrecomp.dino_recomp.desktop",
     "install -D -m644 deploy/io.github.dinosaurplanetrecomp.dino_recomp.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -D -m644 icons/512.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/",
     "install -D -m755 ${FLATPAK_ID}.sh -t /app/bin/"
    ]
   }
  ]
 }
}