{
 "app_id": "io.gitlab.ForTheCommunity.torrentsdigger",
 "source_url": "https://raw.githubusercontent.com/flathub/io.gitlab.ForTheCommunity.torrentsdigger/master/io.gitlab.ForTheCommunity.torrentsdigger.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:12:35.930764+00:00",
 "manifest": {
  "id": "io.gitlab.ForTheCommunity.torrentsdigger",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "torrents_digger",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri"
  ],
  "modules": [
   {
    "name": "torrentsdigger",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/run/build/torrentsdigger/bin:/usr/lib/sdk/llvm20/bin:/usr/lib/sdk/rust-stable/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/torrentsdigger/.pub-cache",
      "CARGO_HOME": "/run/build/torrentsdigger/cargo"
     }
    },
    "build-commands": [
     "mkdir -p /run/build/torrentsdigger/bin",
     "install -Dm755 flatpak/fake_rustup.sh /run/build/torrentsdigger/bin/rustup",
     "ln -sf /usr/lib/sdk/rust-stable/bin/cargo /run/build/torrentsdigger/bin/cargo",
     "setup-flutter.sh",
     "dart run build_runner build --delete-conflicting-outputs",
     "flutter build linux --release --no-pub -v",
     "mkdir -p /app/share/io.gitlab.ForTheCommunity.torrentsdigger",
     "cp -r $BUNDLE_PATH/* /app/share/io.gitlab.ForTheCommunity.torrentsdigger/",
     "install -Dm644 linux/io.gitlab.ForTheCommunity.torrentsdigger.desktop -t /app/share/applications/",
     "install -Dm644 linux/io.gitlab.ForTheCommunity.torrentsdigger.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 linux/icons/hicolor/64x64/apps/io.gitlab.ForTheCommunity.torrentsdigger.png -t /app/share/icons/hicolor/64x64/apps/",
     "install -Dm644 linux/icons/hicolor/128x128/apps/io.gitlab.ForTheCommunity.torrentsdigger.png -t /app/share/icons/hicolor/128x128/apps/",
     "install -Dm644 linux/icons/hicolor/256x256/apps/io.gitlab.ForTheCommunity.torrentsdigger.png -t /app/share/icons/hicolor/256x256/apps/",
     "install -Dm644 linux/icons/hicolor/512x512/apps/io.gitlab.ForTheCommunity.torrentsdigger.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm755 flatpak/torrents_digger.sh /app/bin/torrents_digger"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/ForTheCommunity/torrentsdigger.git",
      "commit": "e21dbe223eda6b979e91909638904fdb9fdce796"
     },
     "generated/sources/cargo.json",
     "generated/sources/pubspec.json"
    ],
    "modules": [
     "generated/modules/flutter-sdk-3.44.4.json"
    ]
   }
  ]
 }
}