{
 "app_id": "io.github.nidszxh.Autowire",
 "source_url": "https://raw.githubusercontent.com/Nidszxh/Autowire/main/io.github.nidszxh.Autowire.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--socket=session-bus",
  "--socket=pulseaudio",
  "--filesystem=xdg-run/pipewire-0",
  "--talk-name=org.freedesktop.WirePlumber",
  "--system-talk-name=org.freedesktop.WirePlumber",
  "--talk-name=org.freedesktop.Flatpak",
  "--filesystem=~/.config/autowire:create"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T17:50:57.267025+00:00",
 "manifest": {
  "app-id": "io.github.nidszxh.Autowire",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "autowire",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--socket=session-bus",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--talk-name=org.freedesktop.WirePlumber",
   "--system-talk-name=org.freedesktop.WirePlumber",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=~/.config/autowire:create"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "autowire",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/bin",
     "install -m 755 scripts/autowire-wrapper.sh /app/bin/autowire",
     "install -m 755 scripts/autowire-daemon-wrapper.sh /app/bin/autowire-daemon",
     "install -d /app/share/autowire",
     "install -m 444 src/main.js /app/share/autowire/",
     "install -m 444 src/window.js /app/share/autowire/",
     "install -m 444 src/profile_dialog.js /app/share/autowire/",
     "install -m 444 src/config_mgr.js /app/share/autowire/",
     "install -m 444 src/daemon.js /app/share/autowire/",
     "install -m 444 src/daemon_main.js /app/share/autowire/",
     "install -m 444 src/wp_monitor.js /app/share/autowire/",
     "install -m 444 src/utils.js /app/share/autowire/",
     "install -m 444 src/bt_profiles.js /app/share/autowire/",
     "install -m 444 src/pactl_parser.js /app/share/autowire/",
     "install -m 444 src/constants.js /app/share/autowire/",
     "install -m 444 src/log.js /app/share/autowire/",
     "install -d /app/share/applications",
     "install -d /app/share/metainfo",
     "install -d /app/share/dbus-1/session-services",
     "sed 's/@APPLICATION_ID@/io.github.nidszxh.Autowire/g' data/io.github.nidszxh.Autowire.desktop.in > /app/share/applications/io.github.nidszxh.Autowire.desktop",
     "install -m 444 data/io.github.nidszxh.Autowire.metainfo.xml /app/share/metainfo/",
     "sed 's|@bindir@|/app/bin|g' data/io.github.nidszxh.Autowire.service.in > /app/share/dbus-1/session-services/io.github.nidszxh.Autowire.service",
     "install -d /app/share/icons/hicolor/scalable/apps",
     "install -d /app/share/icons/hicolor/symbolic/apps",
     "install -m 444 data/icons/hicolor/scalable/apps/io.github.nidszxh.Autowire.svg /app/share/icons/hicolor/scalable/apps/",
     "install -m 444 data/icons/hicolor/symbolic/apps/io.github.nidszxh.Autowire-symbolic.svg /app/share/icons/hicolor/symbolic/apps/",
     "gtk-update-icon-cache -f /app/share/icons/hicolor || true",
     "install -Dm0644 LICENSE -t /app/share/licenses/io.github.nidszxh.Autowire"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "."
     }
    ]
   }
  ]
 }
}