{
 "app_id": "moe.kopuz.kopuz",
 "source_url": "https://raw.githubusercontent.com/flathub/moe.kopuz.kopuz/master/moe.kopuz.kopuz.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=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-music:ro",
  "--filesystem=xdg-run/tray-icon:create",
  "--filesystem=xdg-run/discord-ipc-0",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.mpris.MediaPlayer2.kopuz.*",
  "--own-name=org.mpris.MediaPlayer2.kopuz"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:13:11.862294+00:00",
 "manifest": {
  "app-id": "moe.kopuz.kopuz",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "kopuz",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--share=network",
   "--filesystem=xdg-music:ro",
   "--filesystem=xdg-download:rw",
   "--filesystem=xdg-run/discord-ipc-0",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/tray-icon:create",
   "--talk-name=org.mpris.MediaPlayer2.kopuz.*",
   "--own-name=org.mpris.MediaPlayer2.kopuz",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--env=LD_LIBRARY_PATH=/app/lib"
  ],
  "build-options": {
   "strip": true,
   "append-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/rust-stable/bin"
  },
  "modules": [
   "flathub-submodules/libayatana-appindicator/libayatana-appindicator-gtk3.json",
   "native-modules.json",
   {
    "name": "kopuz",
    "buildsystem": "simple",
    "build-options": {
     "strip": true,
     "prepend-path": "/run/build/kopuz/dioxus-cli",
     "env": {
      "CARGO_HOME": "/run/build/kopuz/cargo",
      "CARGO_NET_OFFLINE": "true",
      "NPM_CONFIG_LOGLEVEL": "info",
      "XDG_CACHE_HOME": "/run/build/kopuz/flatpak-node/npm-cache",
      "npm_config_nodedir": "/usr/lib/sdk/node24",
      "npm_config_cache": "/run/build/kopuz/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "RUSTY_V8_ARCHIVE": "/run/build/kopuz/librusty.a.gz",
      "RUSTFLAGS": "-L native=/app/lib"
     }
    },
    "build-commands": [
     "dx build --release --package kopuz",
     "install -Dm755 target/dx/kopuz/release/linux/app/kopuz $FLATPAK_DEST/bin/kopuz",
     "install -Dm644 data/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 data/$FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml",
     "install -Dm644 crates/kopuz/assets/logo-512.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png",
     "install -Dm644 crates/kopuz/assets/logo-128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Kopuz-org/kopuz.git",
      "tag": "v0.16.2",
      "commit": "9e628b13761be0f7628dab7d634852d6f5ba1f30",
      "x-checker-data": {
       "type": "git",
       "is-main-source": true,
       "tag-pattern": "^v(\\d+\\.\\d+\\.\\d+)$"
      }
     },
     "dioxus-cli.json",
     "cargo-sources.json",
     "librusty.json",
     "npm-sources.json"
    ]
   }
  ]
 }
}