{
 "app_id": "org.eclipse.iot.fourdiac.Ide",
 "source_url": "https://raw.githubusercontent.com/flathub/org.eclipse.iot.fourdiac.Ide/master/org.eclipse.iot.fourdiac.Ide.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-run/dconf",
  "--filesystem=host"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:14:26.669114+00:00",
 "manifest": {
  "app-id": "org.eclipse.iot.fourdiac.Ide",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17"
  ],
  "command": "4diac-ide",
  "finish-args": [
   "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
   "--env=JAVA_HOME=/app/jre",
   "--device=dri",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=network",
   "--filesystem=host",
   "--filesystem=xdg-run/dconf",
   "--persist=/app/"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk17/install.sh"
    ]
   },
   {
    "name": "4diac-ide",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.eclipse.org/downloads/download.php?file=/4diac/releases/3.1/4diac-ide/4diac-ide_3.1.0-linux.gtk.x86_64.tar.gz&mirror_id=1",
      "sha512": "3fa94afec01d735d1956a4b2bb0f1c3283006af09f23a15f160e89834fcd4e41b319475e1b1fd0c427ae3ff9512f4512c9f10e198d44433308ba3009997788a2",
      "dest-filename": "4diac-ide.gtk.x86_64.tar.gz",
      "dest": "4diac-ide"
     },
     {
      "type": "file",
      "path": "4diac-ide.desktop"
     },
     {
      "type": "file",
      "path": "4diac-ide.appdata.xml"
     },
     {
      "type": "file",
      "path": "4diac-ide-512.png"
     }
    ],
    "build-commands": [
     "install -Dm644 4diac-ide.desktop /app/share/applications/org.eclipse.iot.fourdiac.Ide.desktop",
     "install -Dm644 4diac-ide.appdata.xml /app/share/metainfo/org.eclipse.iot.fourdiac.Ide.appdata.xml",
     "install -Dm644 4diac-ide-512.png /app/share/icons/hicolor/512x512/apps/org.eclipse.iot.fourdiac.Ide.png",
     "find 4diac-ide/plugins/ -path \"*/com/sun/jnalinux-x86-64/*\" -delete",
     "cp -av 4diac-ide /app",
     "ln -s /app/jre /app/4diac-ide/jre",
     "mkdir /app/bin",
     "ln -s /app/4diac-ide/4diac-ide /app/bin/4diac-ide",
     "echo '--add-modules=ALL-SYSTEM' >> /app/4diac-ide/4diac-ide.ini"
    ]
   }
  ]
 }
}