{
 "app_id": "app.fluxer.Fluxer",
 "source_url": "https://raw.githubusercontent.com/flathub/app.fluxer.Fluxer/master/app.fluxer.Fluxer.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=all",
  "--filesystem=xdg-run/speech-dispatcher:ro"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:06:21.975267+00:00",
 "manifest": {
  "id": "app.fluxer.Fluxer",
  "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": "app.fluxer.Fluxer",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=all",
   "--filesystem=xdg-run/speech-dispatcher:ro",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=auto",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
  ],
  "build-options": {
   "strip": true,
   "append-path": "/usr/lib/sdk/node22/bin"
  },
  "modules": [
   {
    "name": "fluxer",
    "buildsystem": "simple",
    "build-options": {
     "strip": true,
     "prepend-path": "/run/build/fluxer/pnpm/bin:/run/build/fluxer/fluxer_desktop/node_modules/.bin",
     "env": {
      "NPM_CONFIG_LOGLEVEL": "info",
      "XDG_CACHE_HOME": "/run/build/fluxer/flatpak-node/cache",
      "ELECTRON_SKIP_BINARY_DOWNLOAD": "true",
      "npm_config_nodedir": "/usr/lib/sdk/node22",
      "npm_config_store_dir": "/run/build/fluxer/flatpak-node/pnpm-store",
      "npm_config_offline": "true"
     }
    },
    "subdir": "fluxer_desktop",
    "build-commands": [
     "ln -s ./pnpm.cjs ../pnpm/bin/pnpm",
     "pnpm install --ignore-scripts --frozen-lockfile --offline --force",
     "pnpm build",
     "set -eux\n. ../flatpak-node/electron-builder-arch-args.sh\nelectron-builder --config ./electron-builder.config.cjs --linux --dir $ELECTRON_BUILDER_ARCH_ARGS\n",
     "mv dist-electron/linux*-unpacked $FLATPAK_DEST/fluxer",
     "patch-electron-desktop-filename ${FLATPAK_DEST}/fluxer/resources/app.asar",
     "install -Dm755 ${FLATPAK_ID}.sh ${FLATPAK_DEST}/bin/${FLATPAK_ID}",
     "install -Dm644 packaging/linux/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 packaging/linux/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 packaging/linux/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/fluxerapp/fluxer.git",
      "commit": "ee1f27fe1a372b5291aead8042944afd706bf5db",
      "disable-submodules": true
     },
     {
      "type": "patch",
      "path": "fix.patch"
     },
     {
      "type": "patch",
      "path": "arm-fix.patch",
      "only-arches": [
       "aarch64"
      ]
     },
     {
      "type": "file",
      "path": "app.fluxer.Fluxer.sh",
      "dest": "fluxer_desktop"
     },
     {
      "type": "archive",
      "url": "https://registry.npmjs.org/pnpm/-/pnpm-10.25.0.tgz",
      "sha512": "5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501",
      "dest": "pnpm"
     },
     "generated-sources.json"
    ]
   }
  ]
 }
}