{
 "app_id": "io.github.moonlight_mod.moonlight-installer",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.moonlight_mod.moonlight-installer/master/io.github.moonlight_mod.moonlight-installer.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/discordcanary",
  "--filesystem=~/.var/app/com.discordapp.Discord",
  "--filesystem=xdg-config/discordptb",
  "--filesystem=xdg-config/discord",
  "--filesystem=xdg-data/flatpak/app/com.discordapp.Discord",
  "--filesystem=xdg-config/discorddevelopment",
  "--filesystem=xdg-data/DiscordCanary",
  "--filesystem=xdg-data/DiscordPTB",
  "--filesystem=xdg-data/DiscordDevelopment",
  "--filesystem=xdg-data/flatpak/overrides:create",
  "--filesystem=xdg-data/Discord",
  "--filesystem=xdg-data/flatpak/app/com.discordapp.DiscordCanary",
  "--filesystem=xdg-config/moonlight-mod:create",
  "--filesystem=~/.var/app/com.discordapp.DiscordCanary"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:46.660374+00:00",
 "manifest": {
  "id": "io.github.moonlight_mod.moonlight-installer",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "moonlight-installer",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=xdg-data/flatpak/overrides:create",
   "--filesystem=xdg-data/flatpak/app/com.discordapp.Discord:rw",
   "--filesystem=xdg-data/flatpak/app/com.discordapp.DiscordCanary:rw",
   "--filesystem=xdg-data/Discord:rw",
   "--filesystem=xdg-data/DiscordPTB:rw",
   "--filesystem=xdg-data/DiscordCanary:rw",
   "--filesystem=xdg-data/DiscordDevelopment:rw",
   "--filesystem=xdg-config/discord:rw",
   "--filesystem=xdg-config/discordptb:rw",
   "--filesystem=xdg-config/discordcanary:rw",
   "--filesystem=xdg-config/discorddevelopment:rw",
   "--filesystem=xdg-config/moonlight-mod:create",
   "--filesystem=~/.var/app/com.discordapp.Discord",
   "--filesystem=~/.var/app/com.discordapp.DiscordCanary"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/moonlight-installer/cargo",
    "CARGO_NET_OFFLINE": "true"
   }
  },
  "modules": [
   {
    "name": "moonlight-installer",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml",
     "cargo --offline build --release --bin moonlight-installer",
     "install -Dm755 target/release/moonlight-installer /app/bin/moonlight-installer",
     "install -Dm644 metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 moonlight-installer.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 assets/icon.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png"
    ],
    "sources": [
     {
      "type": "git",
      "commit": "70cbb3c1a32a0bbaa51fc0109c00d159a916d3f7",
      "url": "https://github.com/moonlight-mod/moonlight-installer.git"
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}