{
 "app_id": "com.serial_studio.Serial-Studio",
 "source_url": "https://raw.githubusercontent.com/flathub/com.serial_studio.Serial-Studio/master/com.serial_studio.Serial-Studio.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--allow=bluetooth",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--system-talk-name=org.bluez"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-19T15:16:18.764739+00:00",
 "manifest": {
  "app-id": "com.serial_studio.Serial-Studio",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "command": "serial-studio-gpl3",
  "separate-locales": false,
  "rename-icon": "serial-studio-gpl3",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.10",
  "rename-desktop-file": "serial-studio-gpl3.desktop",
  "rename-appdata-file": "serial-studio.metainfo.xml",
  "rename-mime-file": "serial-studio-ssproj.xml",
  "rename-mime-icons": [
   "serial-studio"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=all",
   "--allow=bluetooth",
   "--system-talk-name=org.bluez",
   "--filesystem=xdg-documents",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
  ],
  "cleanup": [
   "/include",
   "/lib/metatypes",
   "/lib/modules",
   "/lib/qml",
   "/lib/sbom",
   "/lib/cmake",
   "/lib/*.a",
   "/mkspecs",
   "/lib/*-linux-gnu"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   {
    "name": "qt6-graphs",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/qt/qtgraphs.git",
      "tag": "v6.10.3",
      "commit": "6904a774600801aa2931413e47659ae70faf3e8e"
     }
    ]
   },
   {
    "name": "abseil-cpp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DABSL_PROPAGATE_CXX_STD=ON",
     "-DCMAKE_CXX_STANDARD=17"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/abseil/abseil-cpp.git",
      "tag": "20240722.0"
     }
    ]
   },
   {
    "name": "protobuf",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-Dprotobuf_BUILD_TESTS=OFF",
     "-Dprotobuf_ABSL_PROVIDER=package"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/protocolbuffers/protobuf.git",
      "tag": "v28.3"
     }
    ]
   },
   {
    "name": "re2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DRE2_BUILD_TESTING=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/google/re2.git",
      "tag": "2024-07-02"
     }
    ]
   },
   {
    "name": "grpc",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DgRPC_BUILD_TESTS=OFF",
     "-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF",
     "-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF",
     "-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF",
     "-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF",
     "-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF",
     "-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF",
     "-DgRPC_ABSL_PROVIDER=package",
     "-DgRPC_PROTOBUF_PROVIDER=package",
     "-DgRPC_RE2_PROVIDER=package",
     "-DgRPC_SSL_PROVIDER=package",
     "-DgRPC_ZLIB_PROVIDER=package",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/grpc/grpc.git",
      "tag": "v1.67.1"
     }
    ]
   },
   {
    "name": "serial-studio",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DPRODUCTION_OPTIMIZATION=ON",
     "-DBUILD_GPL3=ON",
     "-DUSE_SYSTEM_ZLIB=ON",
     "-DUSE_SYSTEM_EXPAT=ON",
     "-DENABLE_GRPC=ON",
     "-DFETCHCONTENT_SOURCE_DIR_MIMALLOC=/run/build/serial-studio/mimalloc-src"
    ],
    "post-install": [
     "mv ${FLATPAK_DEST}/lib/*-linux-gnu/*.so* ${FLATPAK_DEST}/lib",
     "icon_in=\"${FLATPAK_DEST}/share/pixmaps/serial-studio-gpl3.svg\"\nfor s in {32,64,128,256,512}; do\n  rsvg-convert \"${icon_in}\" -w \"${s}\" -h \"${s}\" -a -f png -o \"${s}.png\"\n  install -Dm644 \"${s}.png\" \"${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/apps/serial-studio-gpl3.png\"\n  install -Dm644 \"${s}.png\" \"${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/mimetypes/serial-studio.png\"\ndone\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Serial-Studio/Serial-Studio.git",
      "commit": "639daafb2fe7d324c3b2d5583d2514c8c470676f",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/Serial-Studio/Serial-Studio/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at"
      },
      "tag": "v4.0.3"
     },
     {
      "type": "archive",
      "url": "https://github.com/microsoft/mimalloc/archive/v2.1.9/mimalloc-v2.1.9.tar.gz",
      "sha256": "dd8ff701691f19bf4e225d42ef0d3d5e6ca0e03498ee4f044a0402e4697e4a20",
      "dest": "mimalloc-src"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i -e '/# Qt automatic deployment/,$d' app/CMakeLists.txt"
      ]
     }
    ]
   }
  ]
 }
}