{
 "app_id": "com.bishwasaha.Koncentro",
 "source_url": "https://raw.githubusercontent.com/flathub/com.bishwasaha.Koncentro/master/com.bishwasaha.Koncentro.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.9",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-config/environment.d:create",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=~/.mitmproxy:create",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.kde.kdeconnect",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:07:02.937121+00:00",
 "manifest": {
  "app-id": "com.bishwasaha.Koncentro",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.9",
  "sdk": "org.kde.Sdk",
  "base": "io.qt.PySide.BaseApp",
  "base-version": "6.9",
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1",
    "BASEAPP_DISABLE_NUMPY=1"
   ]
  },
  "command": "run.sh",
  "rename-desktop-file": "koncentro.desktop",
  "rename-icon": "koncentro",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=network",
   "--socket=pulseaudio",
   "--share=ipc",
   "--device=dri",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.Flatpak",
   "--env=PYTHONPATH=/app/koncentro/",
   "--filesystem=xdg-config/environment.d/:create",
   "--filesystem=home/.mitmproxy/:create"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "cleanup": [
   "*.a",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "modules": [
   "python3-certifi.yaml",
   "python3-loguru.yaml",
   "python3-psutil.yaml",
   "python3-pyside6-fluent-widgets.yaml",
   "python3-semver.yaml",
   "python3-sqlalchemy.yaml",
   "python3-uniproxy.yaml",
   "python3-validators.yaml",
   "python3-alembic.yaml",
   {
    "name": "koncentro",
    "buildsystem": "simple",
    "build-commands": [
     "python -m compileall .",
     "for qrc_file in koncentro/src/resources/*.qrc; do\n    base_name=$(basename \"$qrc_file\" .qrc)\n    /lib/libexec/rcc -g python \"$qrc_file\" -o \"koncentro/src/resources/${base_name}_rc.py\"\ndone\n",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"run.sh\" \"koncentro/installer-scripts/linux/common/koncentro.desktop\"",
     "desktop-file-edit --set-key=\"Icon\" --set-value=\"/usr/share/icons/hicolor/512x512/koncentro/koncentro\" \"koncentro/installer-scripts/linux/common/koncentro.desktop\"",
     "desktop-file-edit --set-key=\"Categories\" --set-value=\"Utility;Office;\" \"koncentro/installer-scripts/linux/common/koncentro.desktop\"",
     "install -Dm644 \"koncentro/installer-scripts/linux/common/koncentro.desktop\" ${FLATPAK_DEST}/share/applications/koncentro.desktop",
     "install -Dm644 koncentro/installer-scripts/linux/common/com.bishwasaha.Koncentro.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.bishwasaha.Koncentro.metainfo.xml",
     "install -Dm644 koncentro/assets/logo_512x512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_64x64.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_48x48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_24x24.png ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/koncentro.png",
     "install -Dm644 koncentro/assets/logo_16x16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/koncentro.png",
     "install -Dm755 run.sh ${FLATPAK_DEST}/bin/run.sh",
     "mkdir -p ${FLATPAK_DEST}/koncentro",
     "mv koncentro/src ${FLATPAK_DEST}/koncentro/src",
     "mv koncentro/alembic.ini ${FLATPAK_DEST}/koncentro/alembic.ini",
     "mv koncentro/LICENSE ${FLATPAK_DEST}/koncentro/LICENSE"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/kun-codes/Koncentro/archive/refs/tags/v1.1.0.tar.gz",
      "dest": "koncentro",
      "sha256": "4e18ccaa408cc03e3abde7e2c3c379b4f7b4c49d17bb4253cd6f223629c1bae0"
     },
     {
      "type": "script",
      "commands": [
       "python /app/koncentro/src/__main__.py \"$@\""
      ],
      "dest-filename": "run.sh"
     }
    ]
   },
   {
    "name": "mitmproxy",
    "buildsystem": "simple",
    "build-commands": [
     "tar -xf mitmproxy/mitmproxy.tar.gz -C mitmproxy",
     "install -Dm755 mitmproxy/mitmdump ${FLATPAK_DEST}/koncentro/mitmdump"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://downloads.mitmproxy.org/12.1.2/mitmproxy-12.1.2-linux-x86_64.tar.gz",
      "sha256": "18cbf40a616fee8ffd8d756c62ef161627ede0dbe4e1a5f9590cd0b7c3db92f7",
      "dest": "mitmproxy",
      "dest-filename": "mitmproxy.tar.gz",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "is-main-source": true,
       "url": "https://api.github.com/repos/mitmproxy/mitmproxy/releases/latest",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at",
       "version-query": "$tag | sub(\"^[vV]\"; \"\")",
       "url-query": "\"https://downloads.mitmproxy.org/\\($version)/mitmproxy-\\($version)-linux-x86_64.tar.gz\""
      }
     },
     {
      "type": "file",
      "url": "https://downloads.mitmproxy.org/12.1.2/mitmproxy-12.1.2-linux-aarch64.tar.gz",
      "sha256": "c8189eb1fc9585f1733a9cb4a57af75b917ca28bb61dba77136a3b9f556bcaec",
      "dest": "mitmproxy",
      "dest-filename": "mitmproxy.tar.gz",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "is-main-source": true,
       "url": "https://api.github.com/repos/mitmproxy/mitmproxy/releases/latest",
       "tag-query": ".tag_name",
       "timestamp-query": ".published_at",
       "version-query": "$tag | sub(\"^[vV]\"; \"\")",
       "url-query": "\"https://downloads.mitmproxy.org/\\($version)/mitmproxy-\\($version)-linux-aarch64.tar.gz\""
      }
     }
    ]
   }
  ]
 }
}