{
 "app_id": "io.github.listen1.Listen1",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.listen1.Listen1/master/io.github.listen1.Listen1.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-music",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.gnome.SessionManager",
  "--talk-name=org.freedesktop.PowerManagement",
  "--own-name=org.mpris.MediaPlayer2.chromium.*"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:29.458217+00:00",
 "manifest": {
  "app-id": "io.github.listen1.Listen1",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "command": "listen1",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=xdg-music",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.gnome.SessionManager",
   "--talk-name=org.freedesktop.PowerManagement",
   "--own-name=org.mpris.MediaPlayer2.chromium.*"
  ],
  "modules": [
   {
    "name": "listen1",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node22/bin:/run/build/listen1/flatpak-node/chromedrive",
     "env": {
      "XDG_CACHE_HOME": "/run/build/listen1/flatpak-node/cache",
      "npm_config_nodedir": "/usr/lib/sdk/node22",
      "npm_config_offline": "true",
      "npm_config_no_save": "true",
      "npm_config_cache": "/run/build/listen1/flatpak-node/npm-cache",
      "npm_config_loglevel": "verbose",
      "ELECTRON_SKIP_BINARY_DOWNLOAD": "true",
      "LENS_SKIP_DOWNLOAD_BINARIES": "true"
     },
     "arch": {
      "x86_64": {
       "env": {
        "npm_config_arch": "x64",
        "npm_config_target_arch": "x64"
       }
      },
      "aarch64": {
       "env": {
        "npm_config_arch": "arm64",
        "npm_config_target_arch": "arm64"
       }
      }
     }
    },
    "build-commands": [
     "npm ci --offline",
     "npx electron-builder --linux dir --${npm_config_arch}",
     "cp -r dist/linux-*unpacked ${FLATPAK_DEST}/listen1",
     "install -Dm644 io.github.listen1.Listen1.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm755 listen1.sh ${FLATPAK_DEST}/bin/listen1",
     "install -Dm644 io.github.listen1.Listen1.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 app/resources/logo512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "for lang in ${FLATPAK_DEST}/listen1/locales/*.pak\ndo\n  locale=\"$(basename -s .pak $lang)\"\n  install -Dm644 -t \"${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/\" \"$lang\"\n  ln -sf \"${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)\" \"${FLATPAK_DEST}/listen1/locales/$(basename $lang)\"\ndone\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/listen1/listen1_desktop.git",
      "tag": "v2.33.0",
      "commit": "bbc38654bd593d4ae70143230ea7814b34d09128",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 322736,
       "stable-only": true,
       "tag-template": "v$version"
      }
     },
     {
      "type": "script",
      "dest-filename": "listen1.sh",
      "commands": [
       "set -oue pipefail",
       "export FLATPAK_ID=\"${FLATPAK_ID:-io.github.listen1.Listen1}\"",
       "export TMPDIR=\"${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}\"",
       "export SNAP=/app/listen1",
       "exec zypak-wrapper /app/listen1/listen1 $@"
      ]
     },
     {
      "type": "file",
      "path": "io.github.listen1.Listen1.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.listen1.Listen1.desktop"
     },
     "generated-sources.json"
    ]
   }
  ]
 }
}