{
 "app_id": "com.swarmtunes.Swarmtunes",
 "source_url": "https://raw.githubusercontent.com/flathub/com.swarmtunes.Swarmtunes/master/com.swarmtunes.Swarmtunes.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "51",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-28T14:10:09.820085+00:00",
 "manifest": {
  "id": "com.swarmtunes.Swarmtunes",
  "runtime": "org.gnome.Platform",
  "runtime-version": "51",
  "sdk": "org.gnome.Sdk",
  "command": "swarmtunes",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node26",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node26/bin:/usr/lib/sdk/rust-stable/bin",
   "env": {
    "XDG_CACHE_HOME": "/run/build/swarmtunes/flatpak-node/cache",
    "npm_config_cache": "/run/build/swarmtunes/flatpak-node/npm-cache",
    "npm_config_offline": "true"
   }
  },
  "modules": [
   {
    "name": "swarmtunes",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p src-tauri/.cargo",
     "cp cargo-config.toml src-tauri/.cargo/config.toml",
     "npm ci --offline",
     "npm run tauri build -- --no-bundle",
     "install -Dm755 src-tauri/target/release/swarmtunes /app/bin/swarmtunes",
     "install -Dm644 data/.desktop /app/share/applications/com.swarmtunes.Swarmtunes.desktop",
     "install -Dm644 data/.metainfo.xml /app/share/metainfo/com.swarmtunes.Swarmtunes.metainfo.xml",
     "install -Dm644 src-tauri/icons/256x256.png /app/share/icons/hicolor/256x256/apps/com.swarmtunes.Swarmtunes.png",
     "install -Dm644 LICENSE /app/share/licenses/$FLATPAK_ID/swarmtunes/LICENSE"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/AceandGaming/swarmtunes-client.git",
      "commit": "b6f2f8a17def7777109360e179e578f849cfcae1"
     },
     "cargo-sources.json",
     "node-sources.json",
     {
      "type": "file",
      "path": "cargo-config.toml"
     }
    ]
   }
  ]
 }
}