{
 "app_id": "io.github.Rangi42.tilemap-studio",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.Rangi42.tilemap-studio/master/io.github.Rangi42.tilemap-studio.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=host"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-19T12:40:12.787173+00:00",
 "manifest": {
  "id": "io.github.Rangi42.tilemap-studio",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "tilemapstudio",
  "finish-args": [
   "--filesystem=host:rw",
   "--socket=x11",
   "--device=dri",
   "--share=ipc"
  ],
  "modules": [
   {
    "name": "fltk",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-abiversion=10307"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/fltk/fltk.git",
      "tag": "release-1.3.8",
      "commit": "3600522ae7d2244b69552458e4d82f869a36067b"
     },
     {
      "type": "patch",
      "path": "xdg-dir.patch"
     }
    ],
    "cleanup": [
     "/include",
     "/share",
     "/bin"
    ]
   },
   {
    "name": "polished-map",
    "buildsystem": "simple",
    "build-commands": [
     "make \"RELEASEFLAGS=-DNDEBUG -O3\"",
     "make install PREFIX=$FLATPAK_DEST",
     "mv \"$FLATPAK_DEST/share/applications/Tilemap Studio.desktop\" $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "desktop-file-edit --set-icon=$FLATPAK_ID --add-category=Game $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 $FLATPAK_ID.png -t $FLATPAK_DEST/share/icons/hicolor/128x128/apps",
     "install -Dm644 $FLATPAK_ID.metainfo.xml -t $FLATPAK_DEST/share/metainfo"
    ],
    "sources": [
     {
      "type": "archive",
      "archive-type": "tar-gzip",
      "url": "https://api.github.com/repos/Rangi42/tilemap-studio/tarball/v4.0.1",
      "sha256": "4ae47cc7e55209ebd36538e438fee635f373665e3270b33e698908b4766df5f3",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Rangi42/tilemap-studio/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "io.github.Rangi42.tilemap-studio.png"
     },
     {
      "type": "file",
      "path": "io.github.Rangi42.tilemap-studio.metainfo.xml"
     }
    ],
    "cleanup": [
     "/share/pixmaps"
    ]
   }
  ]
 }
}