{
 "app_id": "com.modrinth.ModrinthApp",
 "source_url": "https://raw.githubusercontent.com/flathub/com.modrinth.ModrinthApp/master/com.modrinth.ModrinthApp.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-download:ro",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-run/discord-ipc-0"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-19T12:33:27.508279+00:00",
 "manifest": {
  "id": "com.modrinth.ModrinthApp",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "modrinth-app",
  "finish-args": [
   "--filesystem=xdg-download:ro",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/discord-ipc-0",
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=x11",
   "--env=MODRINTH_EXTERNAL_UPDATE_PROVIDER=1",
   "--env=MODRINTH_APP_SOURCE=flatpak"
  ],
  "rename-desktop-file": "Modrinth App.desktop",
  "rename-icon": "ModrinthApp",
  "modules": [
   "modules/flite/flite.yml",
   "modules/xprop/xprop.yml",
   "modules/xrandr.yml",
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "prime-run",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 prime-run \"$FLATPAK_DEST\"/bin/prime-run"
    ],
    "sources": [
     {
      "type": "file",
      "path": "prime-run"
     }
    ]
   },
   {
    "name": "modrinth-app",
    "buildsystem": "simple",
    "build-commands": [
     "chmod +x ModrinthApp.AppImage",
     "./ModrinthApp.AppImage --appimage-extract",
     "desktop-file-edit \\\n  --set-comment=\"Modrinth's game launcher\" \\\n  --set-icon=\"$FLATPAK_ID\" \\\n  --set-key=\"Exec\" --set-value=\"modrinth-app\" \\\n  --set-key=\"StartupNotify\" --set-value=\"true\" \\\n  --set-key=\"Categories\" --set-value=\"Game;ActionGame;AdventureGame;Simulation;\" \\\n  --set-key=\"Keywords\" --set-value=\"game;minecraft;mc;\" \\\n  --set-key=\"StartupWMClass\" --set-value=\"ModrinthApp\" \\\n  \"squashfs-root/usr/share/applications/Modrinth App.desktop\"\n",
     "mkdir -p \"$FLATPAK_DEST\"/{bin,share}",
     "cp -r squashfs-root/usr/share/{applications,icons} \"$FLATPAK_DEST\"/share/",
     "install -Dm755 squashfs-root/usr/bin/ModrinthApp \"$FLATPAK_DEST\"/bin/modrinth-app",
     "install -Dm644 com.modrinth.ModrinthApp.metainfo.xml \"$FLATPAK_DEST\"/share/metainfo/com.modrinth.ModrinthApp.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "path": "com.modrinth.ModrinthApp.metainfo.xml"
     },
     {
      "type": "file",
      "url": "https://launcher-files.modrinth.com/versions/0.21.4/linux/Modrinth%20App_0.21.4_amd64.AppImage",
      "dest-filename": "ModrinthApp.AppImage",
      "sha256": "18b7606872bcd079d319301c7c89b2db4f1b366afd00333856445e59c9c24dcd",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://launcher-files.modrinth.com/updates.json",
       "version-query": ".version",
       "url-query": "\"https://launcher-files.modrinth.com/versions/\\($version)/linux/Modrinth%20App_\\($version)_amd64.AppImage\"\n"
      }
     }
    ]
   },
   {
    "name": "wrapper",
    "buildsystem": "simple",
    "build-commands": [
     "mv $FLATPAK_DEST/bin/modrinth-app $FLATPAK_DEST/bin/modrinth-app-wrapped",
     "install -Dm755 modrinth-app-wrapper.sh $FLATPAK_DEST/bin/modrinth-app"
    ],
    "sources": [
     {
      "type": "file",
      "path": "modrinth-app-wrapper.sh"
     }
    ]
   }
  ]
 }
}