{
 "app_id": "dev.ftb.ftb-app",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.ftb.ftb-app/master/dev.ftb.ftb-app.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-download",
  "--filesystem=xdg-desktop",
  "--filesystem=~/.ftba:create",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:09:33.910087+00:00",
 "manifest": {
  "app-id": "dev.ftb.ftb-app",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ftb.sh",
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-download",
   "--filesystem=xdg-desktop",
   "--filesystem=~/.ftba:create",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "modules": [
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-sd-bus-provider=no-daemon",
     "-Dwith-examples=false"
    ],
    "post-install": [
     "install -Dm755 ../data/gamemoderun -t /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "gamemode.tar.gz",
      "url": "https://api.github.com/repos/FeralInteractive/gamemode/tarball/1.8.2",
      "sha256": "2886d4ce543c78bd2a364316d5e7fd59ef06b71de63f896b37c6d3dc97658f60",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/FeralInteractive/gamemode/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url",
       "timestamp-query": ".published_at"
      }
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/libgamemodeauto.a"
    ]
   },
   {
    "name": "ftb-app",
    "buildsystem": "simple",
    "build-commands": [
     "chmod +x FTB-App-linux-setup.AppImage",
     "./FTB-App-linux-setup.AppImage --appimage-extract",
     "cp -r squashfs-root /app/bin/ftb-app",
     "install -D icon.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -D ${FLATPAK_ID}.desktop -t /app/share/applications",
     "install -D ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo",
     "install -D ftb.sh /app/bin"
    ],
    "sources": [
     {
      "type": "file",
      "dest-filename": "FTB-App-linux-setup.AppImage",
      "url": "https://piston.feed-the-beast.com/app/ftb-app-linux-1.30.1-x86_64.AppImage",
      "sha512": "89c4d76cd5d09c40a953e3e4d599507bfabed8c3cfa03fca32ac866a09f42c63f63f094e76ea59e5b813749937aa7a2df987bc9f7afe23d6a1c15fecb2c37659",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "electron-updater",
       "url": "https://piston.feed-the-beast.com/app/latest-linux.yml"
      }
     },
     {
      "type": "file",
      "dest-filename": "FTB-App-linux-setup.AppImage",
      "url": "https://piston.feed-the-beast.com/app/ftb-app-linux-1.30.1-arm64.AppImage",
      "sha512": "26194d16cf5a818d7e4c6f387176ff0ea8b31eaeb5ffdffe003c7a113712c4144cebe48b2c0b0895a2002d91b0145c7f71045c6d6f81504a07fed34c7c83777a",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "electron-updater",
       "url": "https://piston.feed-the-beast.com/app/latest-linux-arm64.yml"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/FTBTeam/FTB-App/raw/main/flathub/dev.ftb.ftb-app.desktop",
      "sha256": "ba55b59a5bd69b8683e7b9a81834d79110860dca8d950eb194941a74aa64c7cc"
     },
     {
      "type": "file",
      "url": "https://github.com/FTBTeam/FTB-App/raw/main/resources/icon.png",
      "sha256": "fbdd6af27ba157d308884d2f3831c12c3d1d1464b60d8b08ef76cae8ff30cc4f"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/FTBTeam/FTB-App/refs/heads/main/flathub/dev.ftb.ftb-app.metainfo.xml",
      "sha256": "b0f4705f4eb630e20db38fda11371fd90738f3dfdba289ba56b9f54401a6c4e7"
     },
     {
      "type": "script",
      "commands": [
       "# Discord IPC support\nfor i in {0..9}; do\n  test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;\ndone\nexport TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"\n\nrm -f ~/.ftba/app.pid # Temp fix for --ignore-pid-checks not working\necho \"Passing the following flags to electron:\" \"$@\"\nexec zypak-wrapper /app/bin/ftb-app/ftb-app \"$@\" --ignore-pid-checks --ozone-platform=x11\n"
      ],
      "dest-filename": "ftb.sh"
     }
    ]
   }
  ]
 }
}