{
 "app_id": "com.github.jameswestwood.Playchitect",
 "source_url": "https://raw.githubusercontent.com/james-westwood/playchitect/main/packaging/flatpak/com.github.jameswestwood.Playchitect.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-music:ro",
  "--filesystem=xdg-documents",
  "--filesystem=home:ro",
  "--talk-name=org.freedesktop.portal.Desktop",
  "--talk-name=org.freedesktop.portal.FileChooser"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:02:11.481936+00:00",
 "manifest": {
  "app-id": "com.github.jameswestwood.Playchitect",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "playchitect-gui",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-music:ro",
   "--filesystem=xdg-documents",
   "--filesystem=home:ro",
   "--talk-name=org.freedesktop.portal.Desktop",
   "--talk-name=org.freedesktop.portal.FileChooser"
  ],
  "modules": [
   {
    "name": "python-deps",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "PIP_DISABLE_PIP_VERSION_CHECK": "1"
     }
    },
    "build-commands": [
     "pip3 install --prefix=/app --no-build-isolation librosa>=0.10.0 mutagen>=1.47.0 scikit-learn>=1.3.0 numpy>=1.24.0 scipy>=1.11.0 click>=8.1.0 pyyaml>=6.0"
    ],
    "sources": [
     {
      "type": "shell",
      "commands": [
       "echo \"Downloading Python dependencies via pip...\""
      ]
     }
    ]
   },
   {
    "name": "playchitect",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=/app --no-build-isolation --no-deps .",
     "install -Dm644 data/playchitect.desktop /app/share/applications/playchitect.desktop",
     "install -Dm644 data/com.github.jameswestwood.Playchitect.appdata.xml /app/share/metainfo/com.github.jameswestwood.Playchitect.appdata.xml",
     "for size in 16 22 24 32 48 64 128 256 512; do install -Dm644 data/icons/hicolor/${size}x${size}/apps/com.github.jameswestwood.Playchitect.png /app/share/icons/hicolor/${size}x${size}/apps/com.github.jameswestwood.Playchitect.png; done"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../.."
     }
    ]
   }
  ]
 }
}