{
 "app_id": "io.github.jchempaint.JChemPaint",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.jchempaint.JChemPaint/master/io.github.jchempaint.JChemPaint.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:11:19.994373+00:00",
 "manifest": {
  "app-id": "io.github.jchempaint.JChemPaint",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk8"
  ],
  "command": "jchempaint",
  "finish-args": [
   "--socket=x11",
   "--device=dri",
   "--share=ipc",
   "--env=PATH=/app/jre/bin:/app/bin:/usr/bin",
   "--env=JAVA_HOME=/app/jre",
   "--filesystem=home"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk8/install.sh"
    ]
   },
   {
    "name": "jchempaint",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "PATH": "/app/bin:/usr/bin:/usr/lib/sdk/openjdk8/bin",
      "JAVA_HOME": "/usr/lib/sdk/openjdk8/jvm/java-8-openjdk"
     }
    },
    "build-commands": [
     "install -Dm755 jchempaint /app/bin/jchempaint",
     "install -Dm755 io.github.jchempaint.JChemPaint.desktop /app/share/applications/io.github.jchempaint.JChemPaint.desktop",
     "install -Dm755 io.github.jchempaint.JChemPaint.256.png /app/share/icons/hicolor/256x256/apps/io.github.jchempaint.JChemPaint.png",
     "install -Dm755 io.github.jchempaint.JChemPaint.512.png /app/share/icons/hicolor/512x512/apps/io.github.jchempaint.JChemPaint.png",
     "install -Dm755 io.github.jchempaint.JChemPaint.metainfo.xml /app/share/metainfo/io.github.jchempaint.JChemPaint.metainfo.xml",
     "install -Dm644 JChemPaint.jar  /app/share/org.openscience/jchempaint/JChemPaint.jar"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/JChemPaint/jchempaint/releases/download/3.4b/JChemPaint.jar",
      "sha256": "34ed419e7b3a1a3eda1e934cf15dbb8c11a7beb216b79132f695993e488d3563"
     },
     {
      "type": "script",
      "dest-filename": "jchempaint",
      "commands": [
       "exec java -Dlog4j2.configurationFile=jcp-log4j2.xml -jar /app/share/org.openscience/jchempaint/JChemPaint.jar $@"
      ]
     },
     {
      "type": "file",
      "path": "jcp-log4j2.xml"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/JChemPaint/jchempaint/refs/heads/master/appstream/io.github.jchempaint.JChemPaint.desktop",
      "sha256": "18717c6f9951c2193aa57ca6ec10d4d31e6935c479a3c2c34385f6d96eed8edc"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/JChemPaint/jchempaint/refs/heads/master/appstream/io.github.jchempaint.JChemPaint.256.png",
      "sha256": "106ab9f62f12be0f2d216ca78677006745640a4dee175137c46ac293ac698dae"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/JChemPaint/jchempaint/refs/heads/master/appstream/io.github.jchempaint.JChemPaint.512.png",
      "sha256": "f29da2ba82a12d42e947496d1b303d409206abc809e1dcb1282b24aea9109253"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/JChemPaint/jchempaint/f15f0cfc6e006986ea1a224c6ffb87d0c0275858/appstream/io.github.jchempaint.JChemPaint.metainfo.xml",
      "sha256": "3c709a2e2b0caa56e4869d6088380d50b6f19f47101bc61e924af406e1cb47e1"
     }
    ]
   }
  ]
 }
}