{
 "app_id": "com.tidaldownloader.Tideway",
 "source_url": "https://raw.githubusercontent.com/J-M-PUNK/tideway/main/flatpak/com.tidaldownloader.Tideway.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-music:create",
  "--filesystem=xdg-videos:create",
  "--filesystem=xdg-download",
  "--talk-name=org.freedesktop.Notifications",
  "--own-name=org.mpris.MediaPlayer2.tideway"
 ],
 "module_count": 3,
 "fetched_at": "2026-10-05T15:57:33.189268+00:00",
 "manifest": {
  "app-id": "com.tidaldownloader.Tideway",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20"
  ],
  "command": "tideway",
  "appstream-compose": false,
  "finish-args": [
   "--share=network",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-music:create",
   "--filesystem=xdg-videos:create",
   "--filesystem=xdg-download",
   "--talk-name=org.freedesktop.Notifications",
   "--own-name=org.mpris.MediaPlayer2.tideway"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "portaudio",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz",
      "sha256": "5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0"
     }
    ]
   },
   "python3-requirements.json",
   {
    "name": "tideway",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node20/bin",
     "env": {
      "XDG_CACHE_HOME": "/run/build/tideway/flatpak-node/cache",
      "npm_config_cache": "/run/build/tideway/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm --prefix web ci --offline --no-audit --no-fund",
     "npm --prefix web run build",
     "install -d /app/share/tideway/web",
     "cp -r app server.py desktop.py VERSION /app/share/tideway/",
     "cp -r web/dist /app/share/tideway/web/",
     "install -Dm755 flatpak/tideway-launcher.sh /app/bin/tideway",
     "install -Dm644 flatpak/com.tidaldownloader.Tideway.desktop /app/share/applications/com.tidaldownloader.Tideway.desktop",
     "install -Dm644 assets/icon.png /app/share/icons/hicolor/512x512/apps/com.tidaldownloader.Tideway.png",
     "install -Dm644 flatpak/com.tidaldownloader.Tideway.metainfo.xml /app/share/metainfo/com.tidaldownloader.Tideway.metainfo.xml"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     },
     "node-sources.json"
    ]
   }
  ]
 }
}