{
 "app_id": "io.github.juergenfleiss.aTrain",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.juergenfleiss.aTrain/master/io.github.juergenfleiss.aTrain.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-documents"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:11:24.966454+00:00",
 "manifest": {
  "app-id": "io.github.juergenfleiss.aTrain",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "run-atrain.sh",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-documents"
  ],
  "modules": [
   "atrain_python_dependencies.json",
   {
    "name": "atrain-core",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation --no-deps .",
     "install -Dm0644 LICENSE -t ${FLATPAK_DEST}/share/licenses/$FLATPAK_ID/atrain_core"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/JuergenFleiss/atrain_core.git",
      "commit": "36d56549b10950585e4426dae46ebf447b1aa779"
     }
    ]
   },
   {
    "name": "atrain",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation --no-deps .",
     "install -Dm755 flatpak/run-atrain.sh ${FLATPAK_DEST}/bin/run-atrain.sh",
     "install -Dm644 share/icons/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 share/metainfo/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 share/applications/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm0644 LICENSE -t ${FLATPAK_DEST}/share/licenses/$FLATPAK_ID/atrain"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/JuergenFleiss/aTrain.git",
      "commit": "7e9c60ed48965d1f2049eaa4ea4f40d12d2e1339"
     }
    ]
   },
   {
    "name": "atrain-required-large-v3-turbo",
    "buildsystem": "simple",
    "build-commands": [
     "install -d ${FLATPAK_DEST}/share/atrain-required-models",
     "cp -a models/large-v3-turbo ${FLATPAK_DEST}/share/atrain-required-models/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://huggingface.co/datasets/aTrain-core/flatpak_required_models_largev3turbo/resolve/main/large-v3-turbo.tar.zst?download=1",
      "sha256": "b28bd73e580b1955cc9590f271d9ac2d51f1a44f0673931ee6d13ca2945763aa",
      "archive-type": "tar-zst",
      "strip-components": 0,
      "dest": "models"
     }
    ]
   },
   {
    "name": "atrain-required-speaker-detection",
    "buildsystem": "simple",
    "build-commands": [
     "install -d ${FLATPAK_DEST}/share/atrain-required-models",
     "cp -a models/speaker-detection ${FLATPAK_DEST}/share/atrain-required-models/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://huggingface.co/datasets/aTrain-core/flatpak_requiredmodel_speaker-detection/resolve/main/speaker-detection.tar.zst?download=1",
      "sha256": "5b992de6a3e337f0e4c581d9003fa8172cf7737578b7883fb9393e536ac8b964",
      "archive-type": "tar-zst",
      "strip-components": 0,
      "dest": "models"
     }
    ]
   }
  ]
 }
}