{
 "app_id": "org.unifiedpush.Troubleshooter",
 "source_url": "https://raw.githubusercontent.com/flathub/org.unifiedpush.Troubleshooter/master/org.unifiedpush.Troubleshooter.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.unifiedpush.Distributor.*"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:16:52.152065+00:00",
 "manifest": {
  "id": "org.unifiedpush.Troubleshooter",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm20"
  ],
  "command": "up_troubleshoot",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=network",
   "--talk-name=org.unifiedpush.Distributor.*",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "modules": [
   {
    "name": "Troubleshooter",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm20/bin:/var/lib/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
     "env": {
      "PUB_CACHE": "/run/build/Troubleshooter/.pub-cache"
     }
    },
    "build-commands": [
     "setup-flutter.sh -C example",
     "cd example && flutter build linux --release --no-pub",
     "install -Dm0755 example/${BUNDLE_PATH}/up_troubleshoot -t ${FLATPAK_DEST}/bin",
     "cp -r example/${BUNDLE_PATH}/lib ${FLATPAK_DEST}/bin/lib",
     "cp -r example/${BUNDLE_PATH}/data ${FLATPAK_DEST}/bin/data"
    ],
    "post-install": [
     "install -Dm0644 example/flatpak/assets/LICENSE -t ${FLATPAK_DEST}/share/licenses/$FLATPAK_ID/Example",
     "install -Dm0644 example/flatpak/assets/org.unifiedpush.Troubleshooter.png -t ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps",
     "install -Dm0644 example/flatpak/assets/org.unifiedpush.Troubleshooter.service -t ${FLATPAK_DEST}/share/dbus-1/services",
     "install -Dm0644 example/flatpak/assets/org.unifiedpush.Troubleshooter.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm0644 example/flatpak/assets/org.unifiedpush.Troubleshooter.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo"
    ],
    "sources": [
     "pubspec-sources.json",
     {
      "type": "git",
      "url": "https://codeberg.org/UnifiedPush/flutter-connector",
      "commit": "77864c4b1af208fed53d4b38c9f982a0cf0f388c"
     }
    ],
    "modules": [
     "flutter-sdk-3.35.4.json"
    ]
   }
  ]
 }
}