{
 "app_id": "io.github.KikoPlayProject.KikoPlay",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.KikoPlayProject.KikoPlay/master/io.github.KikoPlayProject.KikoPlay.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.8",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--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.kde.kdeconnect",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 12,
 "fetched_at": "2026-09-17T16:10:24.841541+00:00",
 "manifest": {
  "app-id": "io.github.KikoPlayProject.KikoPlay",
  "runtime": "org.kde.Platform",
  "runtime-version": 6.8,
  "sdk": "org.kde.Sdk",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.8",
  "command": "KikoPlay",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-videos",
   "--filesystem=xdg-download",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--persist=.config/kikoplay",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/doc",
   "/share/gtk-doc"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.ffmpeg-full": {
    "version": "24.08",
    "directory": "lib/ffmpeg",
    "add-ld-path": "."
   }
  },
  "cleanup-commands": [
   "mkdir -p /app/lib/ffmpeg",
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   {
    "name": "onnxruntime",
    "buildsystem": "simple",
    "build-commands": [
     "cp -r --no-target-directory ./include /app/include",
     "cp -r --no-target-directory ./lib /app/lib"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.22.0/onnxruntime-linux-x64-1.22.0.tgz",
      "sha256": "8344d55f93d5bc5021ce342db50f62079daf39aaafb5d311a451846228be49b3"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.22.0/onnxruntime-linux-aarch64-1.22.0.tgz",
      "sha256": "bb76395092d150b52c7092dc6b8f2fe4d80f0f3bf0416d2f269193e347e24702"
     }
    ]
   },
   {
    "name": "aria2",
    "config-opts": [
     "--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b",
      "url": "https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 109,
       "url-template": "https://github.com/aria2/aria2/releases/download/release-$version/aria2-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libmpv",
    "buildsystem": "meson",
    "config-opts": [
     "-Dlibmpv=true",
     "-Dlua=disabled",
     "-Ddebug=false",
     "-Dbuild-date=false",
     "-Dcplayer=false",
     "-Dmanpage-build=disabled",
     "-Dvulkan=enabled"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mpv-player/mpv.git",
      "tag": "v0.41.0",
      "commit": "41f6a645068483470267271e1d09966ca3b9f413",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "modules": [
     {
      "name": "libXpresent",
      "buildsystem": "autotools",
      "sources": [
       {
        "type": "git",
        "url": "https://gitlab.freedesktop.org/xorg/lib/libxpresent.git",
        "tag": "libXpresent-1.0.2",
        "commit": "4d92149372461bf575e8a09b1064a2884c38c3aa",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^libXpresent-([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "nv-codec-headers",
      "cleanup": [
       "*"
      ],
      "no-autogen": true,
      "make-install-args": [
       "PREFIX=/app"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/FFmpeg/nv-codec-headers.git",
        "tag": "n13.0.19.0",
        "commit": "e844e5b26f46bb77479f063029595293aa8f812d",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^n([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "libass",
      "config-opts": [
       "--disable-static"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/libass/libass.git",
        "tag": "0.17.5",
        "commit": "4a05d8127f525943ebf45fdc6497c9e665947f0d",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "uchardet",
      "buildsystem": "cmake-ninja",
      "config-opts": [
       "-DCMAKE_BUILD_TYPE=Release",
       "-DBUILD_STATIC=0"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://gitlab.freedesktop.org/uchardet/uchardet.git",
        "tag": "v0.0.8",
        "commit": "ae6302a016088ad07177f86d417b20010053632b",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^v([\\d.]+)$"
        }
       }
      ]
     },
     {
      "name": "libplacebo",
      "buildsystem": "meson",
      "config-opts": [
       "-Dvulkan=enabled",
       "-Dshaderc=enabled",
       "-Dd3d11=disabled",
       "-Ddemos=false"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://code.videolan.org/videolan/libplacebo.git",
        "tag": "v7.360.1",
        "commit": "cee9b076f2c63104ccfd497fa79c39a867293ec4",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^v([\\d.]+)$"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "yt-dlp",
    "no-autogen": true,
    "no-make-install": true,
    "make-args": [
     "yt-dlp",
     "PYTHON=/usr/bin/python3"
    ],
    "post-install": [
     "install -Dm755 yt-dlp -t ${FLATPAK_DEST}/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/yt-dlp/yt-dlp.git",
      "tag": "2026.07.04",
      "commit": "fdec00e0bf530dc6c3cc7b1dd780e95d9ae460e9",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^(\\d{4}\\.\\d{2}\\.\\d{2})$"
      }
     }
    ]
   },
   {
    "name": "kikoplay",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "build-commands": [
     "bsdtar --to-stdout -xvf kikoplay.deb data.* | bsdtar -xvf -",
     "mv usr/share/kikoplay/web usr/bin",
     "rm -r usr/share/kikoplay",
     "cp -a usr/* ${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "file",
      "dest-filename": "kikoplay.deb",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/KikoPlayProject/KikoPlay/releases/download/2.0.0/kikoplay-amd64.deb",
      "sha256": "a3bcbb6c4d92bf453990efd772f9c41c7f76ff5712b798c6732b9bab42361712"
     },
     {
      "type": "file",
      "dest-filename": "kikoplay.deb",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/KikoPlayProject/KikoPlay/releases/download/2.0.0/kikoplay-arm64.deb",
      "sha256": "25956bdc35f0c99131eabe2ff68d6a4ae5a87457e4e7474bbcc89dbdb0d6a18b"
     }
    ]
   },
   {
    "name": "kikoplay-script",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "build-commands": [
     "mkdir -p /app/bin/extension/script",
     "cp -a * /app/bin/extension/script/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/KikoPlayProject/KikoPlayScript.git",
      "commit": "602b9074c3594f2c1f4d65aa83d84f70dfec4740"
     }
    ]
   },
   {
    "name": "kikoplay-app",
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "build-commands": [
     "cp -a app /app/bin/extension/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/KikoPlayProject/KikoPlayApp.git",
      "commit": "e14235dff81408d3047148276de646d93947c875"
     }
    ]
   }
  ]
 }
}