{
 "app_id": "com.github.mtkennerly.ludusavi",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.mtkennerly.ludusavi/master/com.github.mtkennerly.ludusavi.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=~/.var/app",
  "--filesystem=~/.var/app/net.lutris.Lutris",
  "--filesystem=/run/media",
  "--filesystem=~/.var/app/com.heroicgameslauncher.hgl",
  "--filesystem=~/.var/app/com.valvesoftware.Steam"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:45.304592+00:00",
 "manifest": {
  "app-id": "com.github.mtkennerly.ludusavi",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm19"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm19/bin",
   "env": {
    "CARGO_HOME": "/run/build/ludusavi/cargo"
   }
  },
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--share=network",
   "--share=ipc",
   "--filesystem=home",
   "--filesystem=/run/media/",
   "--filesystem=/media/",
   "--filesystem=~/.var/app/com.valvesoftware.Steam",
   "--filesystem=~/.var/app/com.heroicgameslauncher.hgl",
   "--filesystem=~/.var/app/net.lutris.Lutris",
   "--filesystem=~/.var/app/",
   "--device=dri",
   "--env=WINIT_X11_SCALE_FACTOR=1",
   "--env=LUDUSAVI_LINUX_APP_ID=com.github.mtkennerly.ludusavi"
  ],
  "command": "ludusavi",
  "modules": [
   {
    "name": "ludusavi",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "APPNAME": "ludusavi"
     }
    },
    "build-commands": [
     "cargo --offline fetch --verbose",
     "cargo build --offline --release",
     "install -D target/release/ludusavi /app/bin/ludusavi"
    ],
    "post-install": [
     "install -Dm644 assets/icon.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png",
     "install -Dm644 assets/icon.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 assets/flatpak/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 assets/flatpak/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mtkennerly/ludusavi",
      "tag": "v0.31.0"
     },
     "generated-sources.json"
    ]
   },
   {
    "name": "rclone",
    "buildsystem": "simple",
    "build-commands": [
     "cp rclone /app/bin/rclone"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/rclone/rclone/releases/download/v1.73.2/rclone-v1.73.2-linux-amd64.zip",
      "sha256": "00a1d8cb85552b7b07bb0416559b2e78fcf9c6926662a52682d81b5f20c90535"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/rclone/rclone/releases/download/v1.73.2/rclone-v1.73.2-linux-arm64.zip",
      "sha256": "2f7d8b807e6ea638855129052c834ca23aa538d3ad7786e30b8ad1e97c5db47b"
     }
    ]
   }
  ]
 }
}