{
 "app_id": "io.github.nroduit.Weasis",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.nroduit.Weasis/master/io.github.nroduit.Weasis.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=/tmp",
  "--filesystem=host"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:51.849419+00:00",
 "manifest": {
  "app-id": "io.github.nroduit.Weasis",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "Weasis",
  "finish-args": [
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network",
   "--socket=x11",
   "--device=all",
   "--filesystem=host",
   "--filesystem=/tmp",
   "--env=PATH=/app/bin:/usr/bin"
  ],
  "x-lint-config": {
   "suppress": [
    "finish-args-host-filesystem-access",
    "finish-args-host-tmp-access"
   ]
  },
  "modules": [
   {
    "name": "weasis",
    "buildsystem": "simple",
    "build-commands": [
     "tar xvfz runtime-jdk.tar.gz --transform 's!^[^/]*!java-runtime!'",
     "mkdir -p weasis-native",
     "unzip -o weasis-native.zip -d weasis-native",
     "weasis-native/build/script/package-weasis.sh --output tmp --no-installer --jdk java-runtime",
     "mv tmp/Weasis/* /app/",
     "install -D weasis.svg /app/share/icons/hicolor/scalable/apps/io.github.nroduit.Weasis.svg",
     "install -D dicomizer.svg /app/share/icons/hicolor/scalable/apps/io.github.nroduit.Weasis.Dicomizer.svg",
     "install -D -t /app/share/applications/ io.github.nroduit.Weasis.desktop",
     "install -D -t /app/share/applications/ io.github.nroduit.Weasis.Dicomizer.desktop",
     "install -D -t /app/share/metainfo/ io.github.nroduit.Weasis.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "path": "io.github.nroduit.Weasis.desktop"
     },
     {
      "type": "file",
      "path": "io.github.nroduit.Weasis.metainfo.xml"
     },
     {
      "type": "file",
      "path": "weasis.svg"
     },
     {
      "type": "file",
      "path": "dicomizer.svg"
     },
     {
      "type": "file",
      "path": "io.github.nroduit.Weasis.Dicomizer.desktop"
     },
     {
      "type": "file",
      "url": "https://github.com/nroduit/Weasis/releases/download/v4.7.3/weasis-native.zip",
      "sha256": "2444670d2e609432d8a24c6b8308a00268aa29adafcfec684480fa0a0cb0a0cf"
     },
     {
      "type": "file",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/adoptium/temurin26-binaries/releases/download/jdk-26.0.2%2B10/OpenJDK26U-jdk_x64_linux_hotspot_26.0.2_10.tar.gz",
      "sha256": "56f768372f6ca1e2eb4c5f46b78f627949e8dcfe9c9723926cf45a45faf35802",
      "dest-filename": "runtime-jdk.tar.gz"
     },
     {
      "type": "file",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/adoptium/temurin26-binaries/releases/download/jdk-26.0.2%2B10/OpenJDK26U-jdk_aarch64_linux_hotspot_26.0.2_10.tar.gz",
      "dest-filename": "runtime-jdk.tar.gz",
      "sha256": "f82aeb1d5b0ddb93d3bd81c20948bc560c0758993157202424c17e805e2effbb"
     }
    ]
   }
  ]
 }
}