{
 "app_id": "com.neosubhamoy.neodlp",
 "source_url": "https://raw.githubusercontent.com/flathub/com.neosubhamoy.neodlp/master/com.neosubhamoy.neodlp.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-download",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:08:22.752425+00:00",
 "manifest": {
  "id": "com.neosubhamoy.neodlp",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.node24"
  ],
  "command": "neodlp",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-download",
   "--env=FLATPAK=1",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/rust-stable/bin"
  },
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "aria2",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/aria2/aria2.git",
      "tag": "release-1.37.0",
      "commit": "02f2d0d8472b3c38c29b4dba8c75ebd5fdd2899a"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -i"
      ]
     }
    ]
   },
   {
    "name": "neodlp",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/neosubhamoy/neodlp.git",
      "tag": "v0.4.5",
      "commit": "e66da1a155737abd74975a8568916cd92e688fe6"
     },
     "node-sources.json",
     "cargo-sources.json",
     {
      "type": "file",
      "url": "https://github.com/yt-dlp/yt-dlp/releases/download/2026.03.17/yt-dlp_linux",
      "sha256": "c2b0189f581fe4a2ddd41954f1bcb7d327db04b07ed0dea97e4f1b3e09b5dd8e",
      "dest": "src-tauri/binaries",
      "dest-filename": "yt-dlp-x86_64-unknown-linux-gnu",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/yt-dlp/yt-dlp/releases/download/2026.03.17/yt-dlp_linux_aarch64",
      "sha256": "6bfa19736181da9e2e066f9c767da2f24fdcc5e148fa5034d1feb09132f89ad5",
      "dest": "src-tauri/binaries",
      "dest-filename": "yt-dlp-aarch64-unknown-linux-gnu",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/jim60105/bgutil-ytdlp-pot-provider-rs/releases/download/v0.8.1/bgutil-pot-linux-x86_64",
      "sha256": "e7c264a574fa2705b6e5dc62283a8a4e80130f27b9d7e9df44e6b09aa6151a87",
      "dest": "src-tauri/binaries",
      "dest-filename": "neodlp-pot-x86_64-unknown-linux-gnu",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/jim60105/bgutil-ytdlp-pot-provider-rs/releases/download/v0.8.1/bgutil-pot-linux-aarch64",
      "sha256": "4f4a1f681dba45e695e1c14d314517da180a1fd374afd09d634fd80ef6d0284b",
      "dest": "src-tauri/binaries",
      "dest-filename": "neodlp-pot-aarch64-unknown-linux-gnu",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/denoland/deno/releases/download/v2.8.0/deno-x86_64-unknown-linux-gnu.zip",
      "sha256": "be2c8b53c8ca1d66be76feb9b1a524419da708b00d4ca074cf5c633c81c1627b",
      "dest": "src-tauri/resources/downloads",
      "dest-filename": "deno-x86_64-unknown-linux-gnu.zip",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/denoland/deno/releases/download/v2.8.0/deno-aarch64-unknown-linux-gnu.zip",
      "sha256": "933a6a7d2985957271cd2085a5a5a1832398aa221a354daab5635196cf2cbbae",
      "dest": "src-tauri/resources/downloads",
      "dest-filename": "deno-aarch64-unknown-linux-gnu.zip",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "cp src-tauri/resources/downloads/deno src-tauri/binaries/deno-x86_64-unknown-linux-gnu"
      ],
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "cp src-tauri/resources/downloads/deno src-tauri/binaries/deno-aarch64-unknown-linux-gnu"
      ],
      "only-arches": [
       "aarch64"
      ]
     }
    ],
    "build-options": {
     "env": {
      "CARGO_HOME": "/run/build/neodlp/cargo",
      "XDG_CACHE_HOME": "/run/build/neodlp/flatpak-node/cache",
      "npm_config_cache": "/run/build/neodlp/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm ci --offline",
     "cargo --offline fetch --manifest-path src-tauri/Cargo.toml --verbose",
     "chmod +x src-tauri/binaries/*",
     "npm run --offline tauri build -- --no-bundle --config src-tauri/tauri.linux-flatpak.conf.json",
     "install -Dm644 -t /app/share/metainfo/ com.neosubhamoy.neodlp.metainfo.xml",
     "install -Dm644 -t /app/share/applications/ com.neosubhamoy.neodlp.desktop",
     "install -Dm755 -t /app/bin/ src-tauri/target/release/neodlp",
     "install -Dm755 -t /app/bin/ src-tauri/target/release/neodlp-pot",
     "install -Dm755 -t /app/bin/ src-tauri/target/release/deno",
     "install -Dm644 src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/com.neosubhamoy.neodlp.png",
     "install -Dm644 src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/com.neosubhamoy.neodlp.png",
     "install -Dm644 src-tauri/icons/128x128@2x.png /app/share/icons/hicolor/256x256/apps/com.neosubhamoy.neodlp.png",
     "install -Dm644 src-tauri/icons/icon.png /app/share/icons/hicolor/256x256@2/apps/com.neosubhamoy.neodlp.png",
     "mkdir -p /app/lib/neodlp",
     "cp -rf src-tauri/resources/plugins/yt-dlp-plugins /app/lib/neodlp",
     "cp src-tauri/target/release/yt-dlp /app/lib/neodlp/yt-dlp"
    ],
    "post-install": [
     "install -Dm644 LICENSE /app/share/licenses/com.neosubhamoy.neodlp/LICENSE"
    ]
   }
  ]
 }
}