{
 "app_id": "com.hiresti.player",
 "source_url": "https://raw.githubusercontent.com/yelanxin/hiresTI/main/flatpak/com.hiresti.player.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "48",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/pipewire-0",
  "--device=all",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-20T12:55:04.474889+00:00",
 "manifest": {
  "app-id": "com.hiresti.player",
  "runtime": "org.gnome.Platform",
  "runtime-version": "48",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm19"
  ],
  "command": "hiresti",
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CCACHE_DISABLE": "1",
    "RUSTC_WRAPPER": "",
    "LIBCLANG_PATH": "/usr/lib/sdk/llvm19/lib",
    "BINDGEN_EXTRA_CLANG_ARGS": "-resource-dir=/usr/lib/sdk/llvm19/lib/clang/19 -isystem /usr/lib/sdk/llvm19/lib/clang/19/include -isystem /usr/include"
   }
  },
  "finish-args": [
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--device=all",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   "python3-requirements.json",
   {
    "name": "hiresti-launcher",
    "buildsystem": "simple",
    "build-commands": [
     "cat > /app/bin/hiresti << 'WRAPPER_EOF'\n#!/bin/bash\n# Flatpak wrapper for hiresti\n# Note: Flatpak automatically maps XDG_CACHE_HOME, XDG_CONFIG_HOME, XDG_DATA_HOME\n# to persistent directories under ~/.var/app/com.hiresti.player/\n\n# App directory\nAPP_DIR=\"/app/share/hiresti\"\n\n# Run the app\ncd \"$APP_DIR\"\nPYTHONPATH=\"$APP_DIR:$APP_DIR/libs\" python3 main.py \"$@\"\nWRAPPER_EOF\n",
     "chmod +x /app/bin/hiresti"
    ],
    "sources": []
   },
   {
    "name": "rust-audio-core",
    "buildsystem": "simple",
    "build-commands": [
     "cd src_rust/rust_audio_core && cargo build --release --offline",
     "install -Dm755 src_rust/rust_audio_core/target/release/librust_audio_core.so /app/share/hiresti/src_rust/rust_audio_core/target/release/librust_audio_core.so"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     }
    ]
   },
   {
    "name": "rust-viz-core",
    "buildsystem": "simple",
    "build-commands": [
     "cd src_rust/rust_viz_core && cargo build --release --offline",
     "install -Dm755 src_rust/rust_viz_core/target/release/libviz_core.so /app/share/hiresti/src_rust/rust_viz_core/target/release/libviz_core.so"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     }
    ]
   },
   {
    "name": "hiresTI-app",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/share/hiresti",
     "install -d /app/share/icons/hicolor",
     "cp -a src/* /app/share/hiresti/",
     "cp -a icons /app/share/hiresti/",
     "cp -a icons/hicolor/. /app/share/icons/hicolor/",
     "cp version.txt /app/share/hiresti/version.txt",
     "install -Dm644 flatpak/com.hiresti.player.desktop /app/share/applications/com.hiresti.player.desktop",
     "install -Dm644 flatpak/com.hiresti.player.metainfo.xml /app/share/metainfo/com.hiresti.player.metainfo.xml",
     "install -Dm644 icons/hicolor/128x128/apps/hiresti.png /app/share/icons/hicolor/128x128/apps/com.hiresti.player.png",
     "install -Dm644 icons/hicolor/scalable/apps/hiresti.svg /app/share/icons/hicolor/scalable/apps/com.hiresti.player.svg"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     }
    ]
   }
  ]
 }
}