{
 "app_id": "com.ultimaker.cura",
 "source_url": "https://raw.githubusercontent.com/flathub/com.ultimaker.cura/master/com.ultimaker.cura.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=/run/media",
  "--system-talk-name=org.freedesktop.UDisks2"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T11:45:09.449051+00:00",
 "manifest": {
  "app-id": "com.ultimaker.cura",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=x11",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--filesystem=/media",
   "--filesystem=/run/media",
   "--system-talk-name=org.freedesktop.UDisks2"
  ],
  "command": "start-cura-flatpak.sh",
  "modules": [
   {
    "name": "cura",
    "buildsystem": "simple",
    "build-commands": [
     "chmod a+x Cura.AppImage",
     "./Cura.AppImage --appimage-extract >/dev/null",
     "chmod -R --reference=Cura.AppImage squashfs-root",
     "rm ./Cura.AppImage",
     "sed -i -e 's/Icon.*/Icon=com.ultimaker.cura/' squashfs-root/com.ultimaker.cura.desktop",
     "sed -i -e 's/Exec.*/Exec=start-cura-flatpak.sh %F/' squashfs-root/com.ultimaker.cura.desktop",
     "mkdir /app/cura",
     "cp -r squashfs-root/* /app/cura",
     "install -Dm644 squashfs-root/com.ultimaker.cura.desktop /app/share/applications/com.ultimaker.cura.desktop",
     "install -Dm644 squashfs-root/cura-icon.svg /app/share/icons/hicolor/scalable/apps/com.ultimaker.cura.svg",
     "install -Dm644 com.ultimaker.cura.appdata.xml /app/share/appdata/com.ultimaker.cura.appdata.xml",
     "install -Dm 544 start-cura-flatpak.sh /app/bin/start-cura-flatpak.sh",
     "install umount /app/bin"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/Ultimaker/Cura/releases/download/5.13.0/UltiMaker-Cura-5.13.0-linux-X64.AppImage",
      "sha256": "100f068127b2598167f00ba4db0e0699ded45adf97bbab2d22ff171a1e1ecc40",
      "dest-filename": "Cura.AppImage",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/Ultimaker/Cura/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name|match(\"Ulti[mM]aker-Cura.*-linux-X64\\\\.AppImage$\")) | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "com.ultimaker.cura.appdata.xml"
     },
     {
      "type": "script",
      "dest-filename": "start-cura-flatpak.sh",
      "commands": [
       "unset QT_STYLE_OVERRIDE",
       "/app/cura/AppRun -platformtheme gtk3 \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "umount"
     }
    ]
   }
  ]
 }
}