{
 "app_id": "com.ktechpit.ultimate-media-downloader",
 "source_url": "https://raw.githubusercontent.com/flathub/com.ktechpit.ultimate-media-downloader/master/com.ktechpit.ultimate-media-downloader.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-music",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-videos",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--system-talk-name=org.freedesktop.GeoClue2",
  "--system-talk-name=org.freedesktop.UPower.*"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-19T12:32:59.239019+00:00",
 "manifest": {
  "app-id": "com.ktechpit.ultimate-media-downloader",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.11",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "ultimate-media-downloader",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--env=PACKAGE_TYPE=flatpak",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--system-talk-name=org.freedesktop.GeoClue2",
   "--system-talk-name=org.freedesktop.UPower.*",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-download",
   "--filesystem=xdg-music",
   "--filesystem=xdg-pictures",
   "--filesystem=xdg-videos"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/share/man",
   "/share/doc",
   "/lib/pkgconfig",
   "/bin/mksquashfs",
   "/bin/unsquashfs",
   "/bin/sqfscat",
   "/bin/sqfstar"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   "shared-modules/squashfs-tools/squashfs-tools.json",
   "deno.yaml",
   {
    "name": "libgumbo2",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "http://archive.ubuntu.com/ubuntu/pool/universe/g/gumbo-parser/gumbo-parser_0.12.0+dfsg.orig.tar.xz",
      "sha256": "4a20bef3fc3b60067e6eac068205fb4e3071ef4fe8b96fc1315fd8e6a8a81aa9"
     }
    ],
    "cleanup": [
     "*.a",
     "*.la"
    ]
   },
   {
    "name": "luajit",
    "no-autogen": true,
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "/share/man"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/LuaJIT/LuaJIT.git",
      "disable-shallow-clone": true,
      "commit": "659a61693aa3b87661864ad0f12eee14c865cd7f"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|/usr/local|/app|' ./Makefile"
      ]
     }
    ]
   },
   {
    "name": "libass",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libass/libass/releases/download/0.17.4/libass-0.17.4.tar.xz",
      "sha256": "78f1179b838d025e9c26e8fef33f8092f65611444ffa1bfc0cfac6a33511a05a"
     }
    ]
   },
   {
    "name": "libplacebo",
    "buildsystem": "meson",
    "config-opts": [
     "-Dvulkan=disabled",
     "-Dshaderc=disabled"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/haasn/libplacebo.git",
      "tag": "v7.360.1",
      "commit": "cee9b076f2c63104ccfd497fa79c39a867293ec4"
     }
    ]
   },
   {
    "name": "mpv",
    "buildsystem": "meson",
    "build-options": {
     "cflags": "-DNDEBUG=1"
    },
    "config-opts": [
     "-Dlibmpv=false",
     "-Dbuild-date=false",
     "-Dpulse=enabled",
     "-Dalsa=enabled",
     "-Dmanpage-build=disabled",
     "-Dcdda=disabled",
     "-Ddvbin=disabled",
     "-Ddvdnav=disabled",
     "-Djavascript=disabled",
     "-Dlibarchive=disabled",
     "-Dlua=enabled",
     "-Dshaderc=disabled",
     "-Dvulkan=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/mpv-player/mpv/archive/refs/tags/v0.41.0.tar.gz",
      "sha256": "ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209"
     }
    ]
   },
   {
    "name": "ultimate-media-downloader",
    "buildsystem": "simple",
    "build-commands": [
     "unsquashfs -no-progress *.snap",
     "install -Dm755 squashfs-root/usr/bin/ultimate-media-downloader ${FLATPAK_DEST}/bin/ultimate-media-downloader",
     "cp -r squashfs-root/usr/share/icons ${FLATPAK_DEST}/share/",
     "install -Dm644 squashfs-root/usr/share/applications/com.ktechpit.ultimate-media-downloader.desktop ${FLATPAK_DEST}/share/applications/com.ktechpit.ultimate-media-downloader.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/com.ktechpit.ultimate-media-downloader.desktop",
     "install -Dm644 squashfs-root/usr/share/metainfo/com.ktechpit.ultimate-media-downloader.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.ktechpit.ultimate-media-downloader.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://api.snapcraft.io/api/v1/snaps/download/mqCImuZBihW5Od6DMGOZ3BQqwLN9i3LW_69.snap",
      "sha256": "652a7659b73d136a87979a9c710eb714c7de20da491a755eb4f4a696f8bb119a",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://api.snapcraft.io/api/v1/snaps/download/mqCImuZBihW5Od6DMGOZ3BQqwLN9i3LW_70.snap",
      "sha256": "c92aece5831a2df42aa600609888784c929babbde92164aec4ad008af5719369",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   }
  ]
 }
}