{
 "app_id": "io.github.waylyrics.Waylyrics",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.waylyrics.Waylyrics/master/io.github.waylyrics.Waylyrics.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.mpris.MediaPlayer2.*"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:12:30.994013+00:00",
 "manifest": {
  "app-id": "io.github.waylyrics.Waylyrics",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "waylyrics",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--talk-name=org.mpris.MediaPlayer2.*",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin"
  },
  "modules": [
   {
    "name": "waylyrics",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_HOME": "/run/build/waylyrics/cargo",
      "WAYLYRICS_THEME_PRESETS_DIR": "/app/share/waylyrics/themes"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo --offline build --release --verbose",
     "install -Dm755 ./target/release/waylyrics -t /app/bin/",
     "install -Dm644 metainfo/io.github.waylyrics.Waylyrics.desktop -t /app/share/applications/",
     "install -Dm644 metainfo/io.github.waylyrics.Waylyrics.gschema.xml -t /app/share/glib-2.0/schemas/",
     "glib-compile-schemas /app/share/glib-2.0/schemas/",
     "install -Dm644 themesLC_MESSAGES/waylyrics.po; do mo=${locale/#locales//}; mo=${mo/%.po/.mo}; install -Dm644 <(msgfmt ${locale} -o -) /app/share/locale/${mo}; done",
     "cp -r res/icons/ /app/share/",
     "install -Dm644 io.github.waylyrics.Waylyrics.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/waylyrics/waylyrics/archive/refs/tags/v0.4.6.tar.gz",
      "sha256": "2a5169e5de4f195573b13259067301f751136a22517ad5ad1cf474b27b163ca3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 372139,
       "url-template": "https://github.com/waylyrics/waylyrics/archive/refs/tags/v$version.tar.gz"
      }
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/waylyrics/waylyrics/v0.4.6/metainfo/io.github.waylyrics.Waylyrics.metainfo.xml",
      "sha256": "556a8c61cdb2740fe91dcbac06350da9c1ba95f890f46e504cc46592c8b2489b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 372139,
       "url-template": "https://raw.githubusercontent.com/waylyrics/waylyrics/v$version/metainfo/io.github.waylyrics.Waylyrics.metainfo.xml"
      }
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}