{
 "app_id": "org.meshtastic.MeshtasticDesktop",
 "source_url": "https://raw.githubusercontent.com/flathub/org.meshtastic.MeshtasticDesktop/master/org.meshtastic.MeshtasticDesktop.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-21T13:31:34.564923+00:00",
 "manifest": {
  "id": "org.meshtastic.MeshtasticDesktop",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk25"
  ],
  "command": "meshtastic-wrapper.sh",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=all",
   "--share=network",
   "--allow=bluetooth",
   "--system-talk-name=org.bluez.*",
   "--env=PATH=/app/jre/bin:/app/bin:/usr/bin",
   "--env=JAVA_HOME=/app/jre"
  ],
  "modules": [
   {
    "name": "jbr",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/jre",
     "tar xzf jbr_jcef-*.tar.gz -C /app/jre --strip-components=1"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr_jcef-25.0.4.1-linux-x64-b583.48.tar.gz",
      "sha512": "d56810129fee7b33e3bc34191823f2506f4908f6bbaf877fa7b3d8a7e0d0fd2fc275a9d1cdc1727575d0a2c821b522601355fe5bac9a967abfab794fa07e9033",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr_jcef-25.0.4.1-linux-aarch64-b583.48.tar.gz",
      "sha512": "13841efbae2a308cff028db229282f69fb5e94c2b0e7c5bc18f5d958f2fa8d85b4d6547609251d9c8008105035aa5c842455fbe4c7945576757b7e71f6be43c8",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   {
    "name": "meshtastic-desktop",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/openjdk25/bin",
     "env": {
      "JAVA_HOME": "/usr/lib/sdk/openjdk25/jvm/openjdk-25",
      "ORG_GRADLE_PROJECT_org.gradle.java.installations.auto-detect": "false",
      "ORG_GRADLE_PROJECT_org.gradle.java.installations.auto-download": "false",
      "ORG_GRADLE_PROJECT_org.gradle.java.installations.paths": "/usr/lib/sdk/openjdk25/jvm/openjdk-25"
     }
    },
    "build-commands": [
     "install -Dm755 meshtastic-wrapper.sh /app/bin/meshtastic-wrapper.sh",
     "install -Dm644 desktopApp/packaging/icons/icon_round.svg /app/share/icons/hicolor/scalable/apps/org.meshtastic.MeshtasticDesktop.svg",
     "install -Dm644 -t /app/share/applications desktopApp/packaging/linux/org.meshtastic.MeshtasticDesktop.desktop",
     "desktop-file-edit --set-key=\"Exec\" --set-value=\"meshtastic-wrapper.sh %U\" /app/share/applications/org.meshtastic.MeshtasticDesktop.desktop",
     "install -Dm644 -t /app/share/metainfo desktopApp/packaging/linux/org.meshtastic.MeshtasticDesktop.metainfo.xml",
     "./gradlew --offline :desktopApp:packageUberJarForCurrentOS",
     "JAR_FILE=$(find desktopApp/build/compose/jars/ -name \"*.jar\" -type f | head -1) && install -Dm755 \"$JAR_FILE\" /app/lib/meshtastic-desktop.jar\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/meshtastic/Meshtastic-Android.git",
      "tag": "v2.8.1",
      "commit": "7c6a6cc195a2248cd50ed7f2395451cabcd93fdc",
      "x-checker-data": {
       "is-main-source": true,
       "type": "json",
       "url": "https://api.github.com/repos/meshtastic/Meshtastic-Android/releases/latest",
       "timestamp-query": ".published_at",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")"
      }
     },
     {
      "type": "file",
      "url": "https://services.gradle.org/distributions/gradle-9.6.1-bin.zip",
      "sha256": "9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14",
      "dest": "gradle/wrapper",
      "dest-filename": "gradle-bin.zip",
      "x-checker-data": {
       "type": "json",
       "url": "https://services.gradle.org/versions/current",
       "is-main-source": false,
       "version-query": ".version",
       "url-query": ".downloadUrl"
      }
     },
     {
      "type": "file",
      "path": "gradle-wrapper.properties",
      "dest": "gradle/wrapper"
     },
     "flatpak-sources.json",
     {
      "type": "file",
      "path": "meshtastic-wrapper.sh"
     },
     {
      "type": "patch",
      "paths": [
       "patches/gradle-remove_JvmVendorSpec.patch"
      ]
     }
    ]
   }
  ]
 }
}