{
 "app_id": "io.github.db_mobile.resonance",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.db_mobile.resonance/master/io.github.db_mobile.resonance.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:49.798783+00:00",
 "manifest": {
  "id": "io.github.db_mobile.resonance",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "resonance",
  "rename-icon": "icon",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11"
  ],
  "modules": [
   {
    "name": "resonance",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node22/bin:/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/resonance/cargo",
      "npm_config_cache": "/run/build/resonance/flatpak-node/npm-cache"
     }
    },
    "build-commands": [
     "npm install --offline",
     "npm run build:prod",
     "cd src-tauri && cargo build --release --frozen",
     "install -Dm755 src-tauri/target/release/resonance /app/bin/resonance",
     "case \"$(uname -m)\" in\n  x86_64) v=linux-x86_64 ;;\n  aarch64) v=linux-aarch_64 ;;\n  *) echo \"unsupported arch $(uname -m) for vendored protoc\" >&2; exit 1 ;;\nesac\ninstall -Dm755 \"$(find \"$CARGO_HOME/vendor\" -path \"*protoc-bin-vendored-$v-*/bin/protoc\" | head -n1)\" /app/bin/protoc\n",
     "install -Dm644 assets/icons/icon.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 assets/desktop/io.github.db_mobile.resonance.desktop -t /app/share/applications/",
     "install -Dm644 packaging/flatpak/io.github.db_mobile.resonance.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/db-mobile/resonance.git",
      "tag": "v3.2.1",
      "commit": "9a280eceb14b6506b34f60f0df6398256359f8f2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v\\d+(?:\\.\\d+)*$"
      }
     },
     "generated-sources.json",
     "cargo-sources.json"
    ]
   }
  ]
 }
}