{
 "app_id": "com.github.Anuken.Mindustry",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.Anuken.Mindustry/master/com.github.Anuken.Mindustry.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-run/app/com.discordapp.DiscordCanary:create"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-21T12:54:01.638665+00:00",
 "manifest": {
  "app-id": "com.github.Anuken.Mindustry",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk21"
  ],
  "command": "mindustry.sh",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--device=dri",
   "--env=PATH=/usr/bin:/app/bin:/app/jre/bin",
   "--env=JAVA_HOME=/app/jre",
   "--share=network",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/app/com.discordapp.DiscordCanary:create"
  ],
  "build-options": {
   "env": {
    "JAVA_HOME": "/usr/lib/sdk/openjdk21/"
   }
  },
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk21/install.sh"
    ]
   },
   {
    "name": "mindustry-binary",
    "buildsystem": "simple",
    "build-commands": [
     "install -D Mindustry.jar /app/bin/Mindustry.jar",
     "install -D mindustry.sh /app/bin/mindustry.sh",
     "install -D com.github.Anuken.Mindustry.desktop /app/share/applications/com.github.Anuken.Mindustry.desktop",
     "install -D com.github.Anuken.Mindustry.metainfo.xml /app/share/metainfo/com.github.Anuken.Mindustry.metainfo.xml",
     "install -D com.github.Anuken.Mindustry.png /app/share/icons/hicolor/512x512/apps/com.github.Anuken.Mindustry.png"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://f-droid.org/repo/io.anuke.mindustry/en-US/icon_Eno3XvqCZUcHRm3eMjiUleAxgzLopPe6-hkI7BHx1lU=.png",
      "dest-filename": "com.github.Anuken.Mindustry.png",
      "sha256": "127a375efa82654707466dde32389495e0318332e8a4f7bafa1908ec11f1d655"
     },
     {
      "type": "file",
      "path": "com.github.Anuken.Mindustry.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.github.Anuken.Mindustry.desktop"
     },
     {
      "type": "file",
      "path": "mindustry.sh"
     },
     {
      "type": "file",
      "url": "https://github.com/Anuken/Mindustry/releases/download/v160.5/Mindustry.jar",
      "sha256": "c2fd5a5dcb8d306525bb47ff28121237d4d25f53868562946491f2ef261dc272",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Anuken/Mindustry/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"Mindustry.jar\") | .browser_download_url"
      }
     }
    ]
   }
  ]
 }
}