{
 "app_id": "io.github.zhaoweny.clear-record",
 "source_url": "https://raw.githubusercontent.com/zhaoweny/clear-record/main/packaging/flatpak/io.github.zhaoweny.clear-record.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=dri",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--filesystem=home",
  "--share=network",
  "--env=CR_GGML_BACKEND_DIRS=/app/lib"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-20T12:57:32.172743+00:00",
 "manifest": {
  "app-id": "io.github.zhaoweny.clear-record",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "clear-record",
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--filesystem=home",
   "--share=network",
   "--env=CR_GGML_BACKEND_DIRS=/app/lib"
  ],
  "modules": [
   {
    "name": "whisper-cpp",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_VULKAN=ON",
     "-DGGML_BACKEND_DL=ON",
     "-DGGML_BACKEND_DIR=/app/lib",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_SERVER=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ggml-org/whisper.cpp.git",
      "tag": "v1.7.6"
     }
    ]
   },
   "python3-modules.json",
   {
    "name": "clear-record",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --no-deps --find-links=file://${PWD}/dist --prefix=${FLATPAK_DEST} clear-record",
     "install -Dm644 packaging/flatpak/io.github.zhaoweny.clear-record.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.zhaoweny.clear-record.metainfo.xml",
     "install -d ${FLATPAK_DEST}/bin\ncat > ${FLATPAK_DEST}/bin/clear-record-web <<'EOF'\n#!/bin/sh\n: \"${CR_MODELS_DIR:=${XDG_DATA_HOME:-$HOME/.local/share}/clear-record/models}\"\nexport CR_MODELS_DIR\nexec clear-record web --no-browser \"$@\"\nEOF\nchmod +x ${FLATPAK_DEST}/bin/clear-record-web\n",
     "install -d ${FLATPAK_DEST}/share/applications\ncat > ${FLATPAK_DEST}/share/applications/io.github.zhaoweny.clear-record.desktop <<'EOF'\n[Desktop Entry]\nName=clear-record\nComment=Local-first multitrack transcription and record reconstruction\nExec=clear-record-web\nIcon=io.github.zhaoweny.clear-record\nTerminal=false\nType=Application\nCategories=AudioVideo;Audio;Utility;\nEOF\n"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../.."
     }
    ]
   }
  ]
 }
}