{
 "app_id": "io.github.brunofin.Cohesion",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.brunofin.Cohesion/master/io.github.brunofin.Cohesion.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=com.canonical.indicator.application",
  "--talk-name=org.ayatana.indicator.application"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:10:45.056535+00:00",
 "manifest": {
  "app-id": "io.github.brunofin.Cohesion",
  "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"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin"
  },
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.indicator.application",
   "--talk-name=org.ayatana.indicator.application",
   "--filesystem=xdg-documents",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=auto"
  ],
  "command": "cohesion",
  "modules": [
   {
    "name": "cohesion",
    "buildsystem": "simple",
    "subdir": "main",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/cohesion/flatpak-node/cache",
      "npm_config_cache": "/run/build/cohesion/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "ELECTRON_SKIP_BINARY_DOWNLOAD": "1"
     }
    },
    "build-commands": [
     "npm install --offline",
     "../flatpak-node/electron-builder-arch-args.sh",
     "npm run build -- -c.electronDist=../flatpak-node/cache/electron $ELECTRON_BUILDER_ARCH_ARGS --dir",
     "cp -a build/linux*unpacked /app/cohesion",
     "install -Dm755 ../run.sh /app/bin/cohesion",
     "install -Dm644 data/io.github.brunofin.Cohesion.appdata.xml -t /app/share/metainfo/",
     "install -Dm644 data/io.github.brunofin.Cohesion.desktop -t /app/share/applications/",
     "install -Dm644 data/icons/hicolor/scalable/apps/io.github.brunofin.Cohesion.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 data/icons/hicolor/scalable/apps/io.github.brunofin.Cohesion-unread.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 data/icons/hicolor/128x128/apps/io.github.brunofin.Cohesion.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/128x128/apps/io.github.brunofin.Cohesion-unread.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/512x512/apps/io.github.brunofin.Cohesion.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/512x512/apps/io.github.brunofin.Cohesion-unread.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/scalable/apps/io.github.brunofin.Cohesion-greyscale.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 data/icons/hicolor/scalable/apps/io.github.brunofin.Cohesion-greyscale-unread.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 data/icons/hicolor/128x128/apps/io.github.brunofin.Cohesion-greyscale.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/128x128/apps/io.github.brunofin.Cohesion-greyscale-unread.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/512x512/apps/io.github.brunofin.Cohesion-greyscale.png -t /app/share/icons/hicolor/512x512/apps/",
     "install -Dm644 data/icons/hicolor/512x512/apps/io.github.brunofin.Cohesion-greyscale-unread.png -t /app/share/icons/hicolor/512x512/apps/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/brunofin/cohesion.git",
      "tag": "v1.1.1",
      "dest": "main"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "export TMPDIR=\"${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}\"",
       "zypak-wrapper.sh /app/cohesion/cohesion --enable-wayland-ime \"$@\""
      ]
     }
    ]
   }
  ]
 }
}