{
 "app_id": "com.github.taiko2k.tauonmb",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.taiko2k.tauonmb/master/com.github.taiko2k.tauonmb.json",
 "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=all",
  "--device=if:all:!has-input-device",
  "--device=dri",
  "--device=input",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-music",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-run/discord-ipc-0",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--own-name=org.mpris.MediaPlayer2.tauon",
  "--system-talk-name=org.freedesktop.login1"
 ],
 "module_count": 18,
 "fetched_at": "2026-09-18T07:19:03.365822+00:00",
 "manifest": {
  "app-id": "com.github.taiko2k.tauonmb",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "com.github.taiko2k.tauonmb.sh",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--device-if=all:!has-input-device",
   "--device=input",
   "--filesystem=xdg-music",
   "--filesystem=xdg-download",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/discord-ipc-0",
   "--filesystem=xdg-run/pipewire-0",
   "--system-talk-name=org.freedesktop.login1",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--own-name=org.mpris.MediaPlayer2.tauon"
  ],
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json",
   "python-pylast.json",
   "python3-scikit-build-core.json",
   "python-dbus-deps.json",
   "python-frozenlist.json",
   "python3-poetry-core.json",
   "python3-modules.json",
   "python3-PyOpenGL.json",
   "projectm.json",
   "fonts.json",
   "sdl3.json",
   {
    "name": "libopenmpt",
    "buildsystem": "autotools",
    "config-opts": [
     "--without-portaudio",
     "--disable-examples"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-0.8.7+release.autotools.tar.gz",
      "sha256": "275c29ef47be9992f62a35fcc96f7ca05c06d2fd05c9298b8dee9f743f75b089"
     }
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "/include"
    ]
   },
   {
    "name": "wavpack",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.wavpack.com/wavpack-5.9.0.tar.bz2",
      "sha256": "b0038f515d322042aaa6bd352d437729c6f5f904363cc85bbc9b0d8bd4a81927"
     }
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "/include",
     "/bin",
     "/share/man"
    ]
   },
   {
    "name": "opusfile",
    "config-opts": [
     "--disable-doc",
     "--disable-examples"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.osuosl.org/pub/xiph/releases/opus/opusfile-0.12.tar.gz",
      "sha256": "118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b"
     }
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "/include"
    ]
   },
   {
    "name": "libgme",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libgme/game-music-emu/archive/refs/tags/0.6.5.tar.gz",
      "sha256": "8531678502451c2cf04248cda45c8b4645e19fcfb63e6a7ec2549641c47bb392"
     }
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "/include",
     "/bin",
     "/share/man"
    ]
   },
   {
    "name": "python3-pycairo",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pycairo\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/22/d9/1728840a22a4ef8a8f479b9156aa2943cd98c3907accd3849fb0d5f82bfd/pycairo-1.29.0.tar.gz",
      "sha256": "f3f7fde97325cae80224c09f12564ef58d0d0f655da0e3b040f5807bd5bd3142"
     }
    ]
   },
   {
    "name": "tauonmb-git",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/tauonmb-git/cargo"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path src/lrclib-solver/Cargo.toml --verbose",
     "cargo build --release --offline --manifest-path src/lrclib-solver/Cargo.toml --bin lrclib-solver",
     "cp src/lrclib-solver/target/release/lrclib-solver src/tauon/lrclib-solver",
     "rm -rf src/lrclib-solver/target",
     "bash run.sh 5",
     "python3 tools/i18n/compile_translations.py",
     "rm -rf cargo",
     "mkdir -p /app/share/locale",
     "mv src/tauon/locale /app/share/",
     "mkdir -p /app/bin",
     "cp -r * /app/bin/",
     "mkdir -p /app/share/icons/hicolor/scalable/apps",
     "mkdir -p /app/share/icons/hicolor/symbolic/apps",
     "install -D extra/tauonmb.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -D extra/tauonmb-symbolic.svg /app/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg",
     "install -D src/tauon/assets/icon-64.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png",
     "install -D src/tauon/assets/icon-128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -D extra/com.github.taiko2k.tauonmb.appdata.xml /app/share/metainfo/${FLATPAK_ID}.appdata.xml",
     "install -D extra/com.github.taiko2k.tauonmb.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -D extra/com.github.taiko2k.tauonmb.sh /app/bin/com.github.taiko2k.tauonmb.sh"
    ],
    "sources": [
     "lrclib-solver-cargo-sources.json",
     {
      "type": "git",
      "url": "https://github.com/Taiko2k/Tauon.git",
      "commit": "382a601f5aa2837abbae6cb02f1d6161d8fc9147"
     }
    ]
   },
   "zenity.json"
  ]
 }
}