{
 "app_id": "com.stremio.Stremio",
 "source_url": "https://raw.githubusercontent.com/flathub/com.stremio.Stremio/master/com.stremio.Stremio.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=xdg-run/stremio:create",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--own-name=org.mpris.MediaPlayer2.Stremio"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:08:49.930677+00:00",
 "manifest": {
  "app-id": "com.stremio.Stremio",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.codecs-extra": {
    "version": "25.08-extra",
    "directory": "lib/codecs-extra",
    "add-ld-path": "."
   },
   "org.freedesktop.Platform.VAAPI.Intel": {
    "version": "25.08",
    "directory": "lib/intel-vaapi-driver",
    "add-ld-path": ".",
    "download-if": "have-intel-gpu",
    "enable-if": "have-intel-gpu"
   }
  },
  "command": "stremio",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=all",
   "--persist=.stremio-server",
   "--filesystem=xdg-download",
   "--filesystem=xdg-run/stremio:create",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--own-name=org.mpris.MediaPlayer2.Stremio",
   "--env=LC_NUMERIC=C",
   "--env=SERVER_PATH=/app/libexec/stremio/server.js",
   "--env=ANV_DEBUG=video-decode,video-encode"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin"
  },
  "modules": [
   {
    "name": "stremio",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_HOME": "/run/build/stremio/cargo",
      "RUSTFLAGS": "-L /app/lib -C link-arg=-Wl,-rpath-link=/app/lib"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose -F offline-build"
    ],
    "post-install": [
     "install -Dm755 target/release/stremio-linux-shell /app/libexec/stremio/stremio",
     "install -Dm644 data/server.js -t /app/libexec/stremio",
     "install -Dm755 data/stremio.sh /app/bin/stremio",
     "install -Dm644 data/icons/com.stremio.Stremio.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 data/com.stremio.Stremio.desktop -t /app/share/applications/",
     "install -Dm644 data/com.stremio.Stremio.metainfo.xml -t /app/share/metainfo/",
     "install -Dm644 data/com.stremio.Stremio.service -t /app/share/dbus-1/services/",
     "install -Dm644 data/com.stremio.Stremio.gschema.xml -t /app/share/glib-2.0/schemas/",
     "install -Dm644 po/es/LC_MESSAGES/stremio.mo -t /app/share/locale/es/LC_MESSAGES/",
     "install -Dm644 po/fr/LC_MESSAGES/stremio.mo -t /app/share/locale/fr/LC_MESSAGES/",
     "install -Dm644 ./LICENSE -t /app/share/licenses/stremio/",
     "glib-compile-schemas /app/share/glib-2.0/schemas",
     "mkdir -p /app/lib/codecs-extra",
     "mkdir -p /app/lib/intel-vaapi-driver"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Stremio/stremio-linux-shell.git",
      "tag": "v1.2.0"
     },
     "cargo-sources.json"
    ],
    "modules": [
     {
      "name": "libmpv",
      "buildsystem": "meson",
      "config-opts": [
       "-Dbuild-date=false",
       "-Dcplayer=false",
       "-Dlibmpv=true",
       "-Dmanpage-build=disabled",
       "-Dvaapi=enabled",
       "-Dvaapi-wayland=enabled"
      ],
      "cleanup": [
       "/include",
       "/lib/pkgconfig"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/mpv-player/mpv/archive/v0.41.0.tar.gz",
        "sha256": "ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209"
       }
      ],
      "modules": [
       {
        "name": "libplacebo",
        "buildsystem": "meson",
        "config-opts": [
         "-Ddemos=false"
        ],
        "cleanup": [
         "/include",
         "/lib/pkgconfig"
        ],
        "sources": [
         {
          "type": "git",
          "url": "https://github.com/haasn/libplacebo.git",
          "tag": "v7.360.1"
         }
        ]
       },
       {
        "name": "libass",
        "buildsystem": "meson",
        "cleanup": [
         "/include",
         "/lib/pkgconfig"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://github.com/libass/libass/archive/0.17.4.tar.gz",
          "sha256": "c287d180d93dc9c9021872574b618ac49027e84cc90e1289318b1ee68bb42251"
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "nodejs",
    "buildsystem": "simple",
    "build-commands": [
     "install -D bin/node -t /app/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://nodejs.org/dist/v22.15.0/node-v22.15.0-linux-x64.tar.xz",
      "sha256": "dafe2e8f82cb97de1bd10db9e2ec4c07bbf53389b0799b1e095a918951e78fd4",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "url": "https://nodejs.org/dist/v22.23.1/node-v22.23.1-linux-arm64.tar.xz",
      "sha256": "0294e8b915ab75f92c7513d2fcb830ae06e10684e6c603e99a87dbf8835389c1",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   }
  ]
 }
}