{
 "app_id": "net.lrclib.lrcget",
 "source_url": "https://raw.githubusercontent.com/flathub/net.lrclib.lrcget/master/net.lrclib.lrcget.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:13:31.256730+00:00",
 "manifest": {
  "id": "net.lrclib.lrcget",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "LRCGET",
  "rename-desktop-file": "LRCGET.desktop",
  "rename-appdata-file": "LRCGET.metainfo.xml",
  "rename-icon": "LRCGET",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   {
    "name": "lrcget",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_NET_OFFLINE": "true",
      "XDG_CACHE_HOME": "/run/build/lrcget/flatpak-node/cache",
      "LINDERA_CACHE": "/run/build/lrcget/lindera-dics"
     }
    },
    "build-commands": [
     "HOME=$PWD yarn config --offline set yarn-offline-mirror $FLATPAK_BUILDER_BUILDDIR/flatpak-node/yarn-mirror",
     "yarn --offline --frozen-lockfile install",
     "install -Dm644 cargo/config .cargo/config.toml",
     "cargo fetch --manifest-path src-tauri/Cargo.toml --verbose",
     "yarn --offline run tauri build --no-bundle",
     "install -Dm755 -t /app/bin src-tauri/target/release/LRCGET",
     "install -Dm644 -t /app/share/applications packaging/linux/LRCGET.desktop",
     "install -Dm644 -t /app/share/metainfo packaging/linux/LRCGET.metainfo.xml",
     "install -Dm644 src-tauri/icons/icon.png /app/share/icons/hicolor/512x512/apps/LRCGET.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tranxuanthang/lrcget.git",
      "commit": "bd31b5c2789576e9c875e37ba87e792da02b4606",
      "tag": "2.2.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "path": "yarn.lock"
     },
     "node-sources.json",
     "cargo-sources.json",
     {
      "type": "file",
      "dest": "lindera-dics/0.43.3",
      "url": "https://lindera.dev/unidic-mecab-2.1.2.tar.gz",
      "sha256": "24ac75fe4e44d973b55e65847c35fa4aec2db7a41a07b49ca125146db9fc1189"
     },
     {
      "type": "file",
      "dest": "lindera-dics/0.43.3",
      "url": "https://lindera.dev/mecab-ko-dic-2.1.1-20180720.tar.gz",
      "sha256": "702ced21c6167e9d9aebc674ab5ee54af58d4443975f2940d37d0567c020591a"
     },
     {
      "type": "patch",
      "path": "patches/lindera-offline-dics.patch"
     }
    ]
   }
  ]
 }
}