{
 "app_id": "com.prusa3d.PrusaSlicer",
 "source_url": "https://raw.githubusercontent.com/flathub/com.prusa3d.PrusaSlicer/master/com.prusa3d.PrusaSlicer.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=all",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=/run/media",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.freedesktop.DBus.Introspectable.*",
  "--talk-name=com.prusa3d.prusaslicer.InstanceCheck.*",
  "--own-name=com.prusa3d.prusaslicer.*",
  "--system-talk-name=org.freedesktop.UDisks2"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-20T11:43:55.255434+00:00",
 "manifest": {
  "app-id": "com.prusa3d.PrusaSlicer",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "entrypoint",
  "desktop-file-name-suffix": "",
  "separate-locales": true,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=/run/media",
   "--filesystem=/media",
   "--own-name=com.prusa3d.prusaslicer.*",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--talk-name=org.freedesktop.DBus.Introspectable.*",
   "--talk-name=com.prusa3d.prusaslicer.InstanceCheck.*",
   "--env=PRUSA_SLICER_DARK_THEME=false"
  ],
  "build-options": {
   "strip": true,
   "cflags": "",
   "cflags-override": true,
   "cxxflags": "",
   "cxxflags-override": true,
   "cppflags": "",
   "cppflags-override": true,
   "ldflags": "",
   "ldflags-override": true
  },
  "modules": [
   {
    "name": "xprop",
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.freedesktop.org/xorg/app/xprop/-/archive/xprop-1.2.8/xprop-xprop-1.2.8.tar.gz",
      "sha256": "d72c0c4b9151b45ae577d397c51133c36cb4a85e4a73ea8bd0cb5df5398f79d9"
     }
    ]
   },
   {
    "name": "python-setuptools_scm",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --no-build-isolation --verbose --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/57/38/930b1241372a9f266a7df2b184fb9d4f497c2cef2e016b014f82f541fe7c/setuptools_scm-6.0.1.tar.gz",
      "sha256": "d1925a69cb07e9b29416a275b9fadb009a23c148ace905b2fb220649a6c18e92"
     }
    ]
   },
   {
    "name": "python-six",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --no-build-isolation --verbose --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/source/s/six/six-1.16.0.tar.gz",
      "sha256": "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
     }
    ]
   },
   {
    "name": "python-xlib",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-deps --no-build-isolation --verbose --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/86/f5/8c0653e5bb54e0cbdfe27bf32d41f27bc4e12faa8742778c17f2a71be2c0/python-xlib-0.33.tar.gz",
      "sha256": "55af7906a2c75ce6cb280a584776080602444f75815a7aff4d287bb2d7018b32"
     }
    ]
   },
   {
    "name": "glu",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mesa.freedesktop.org/archive/glu/glu-9.0.2.tar.xz",
      "sha256": "6e7280ff585c6a1d9dfcdf2fca489251634b3377bfc33c29e4002466a38d02d4"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/*.a",
     "/lib/*.la",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "cmake",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/cmake",
     "tar -xf cmake.tar.gz --strip-components=1 -C /app/cmake"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://cmake.org/files/v3.27/cmake-3.27.0-linux-x86_64.tar.gz",
      "sha256": "89c7e74d29f442e4734954310e09dd12d13636991f2d90d0ed1bececb8bf9b9c",
      "dest-filename": "cmake.tar.gz",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "file",
      "url": "https://cmake.org/files/v3.27/cmake-3.27.0-linux-aarch64.tar.gz",
      "sha256": "97c2f8cf9e063a7acf9f15ed472d87c511bf5cb62d3e42b9c90524fb0c2e4748",
      "dest-filename": "cmake.tar.gz",
      "only-arches": [
       "aarch64"
      ]
     }
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "PrusaSlicerDeps",
    "buildsystem": "simple",
    "build-commands": [
     "set -e\nmkdir -p deps/build && cd deps/build\n/app/cmake/bin/cmake ../ \\\n  -DDEP_WX_GTK3=1 \\\n  -DDEP_DOWNLOAD_DIR=/run/build/PrusaSlicerDeps/external-packages \\\n  -DDESTDIR=/app/deps\n/app/cmake/bin/cmake --build .\n"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/prusa3d/PrusaSlicer",
      "tag": "version_2.9.6"
     },
     {
      "type": "file",
      "url": "https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.0.zip",
      "dest": "external-packages/Cereal",
      "sha256": "71642cb54658e98c8f07a0f0d08bf9766f1c3771496936f6014169d3726d9657"
     },
     {
      "type": "file",
      "url": "https://github.com/libexpat/libexpat/archive/refs/tags/R_2_4_3.zip",
      "dest": "external-packages/EXPAT",
      "sha256": "8851e199d763dc785277d6d414ed3e70ff683915158b51b8d8781df0e3af950a"
     },
     {
      "type": "file",
      "url": "https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_6_1.zip",
      "dest": "external-packages/OCCT",
      "sha256": "b7cf65430d6f099adc9df1749473235de7941120b5b5dd356067d12d0909b1d3"
     },
     {
      "type": "file",
      "url": "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz",
      "dest": "external-packages/NLopt",
      "sha256": "c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae"
     },
     {
      "type": "file",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip",
      "dest": "external-packages/Eigen",
      "sha256": "4815118c085ff1d5a21f62218a3b2ac62555e9b8d7bacd5093892398e7a92c4b"
     },
     {
      "type": "file",
      "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/3.0.1.zip",
      "dest": "external-packages/JPEG",
      "sha256": "d6d99e693366bc03897677650e8b2dfa76b5d6c54e2c9e70c03f0af821b0a52f"
     },
     {
      "type": "file",
      "url": "https://github.com/madler/zlib/releases/download/v1.3.1/zlib131.zip",
      "dest": "external-packages/ZLIB",
      "sha256": "72af66d44fcc14c22013b46b814d5d2514673dda3d115e64b690c1ad636e7b17"
     },
     {
      "type": "file",
      "url": "https://github.com/atomicobject/heatshrink/archive/refs/tags/v0.4.1.zip",
      "dest": "external-packages/heatshrink",
      "sha256": "2e2db2366bdf36cb450f0b3229467cbc6ea81a8c690723e4227b0b46f92584fe"
     },
     {
      "type": "file",
      "url": "https://github.com/glennrp/libpng/archive/refs/tags/v1.6.35.zip",
      "dest": "external-packages/PNG",
      "sha256": "3d22d46c566b1761a0e15ea397589b3a5f36ac09b7c785382e6470156c04247f"
     },
     {
      "type": "file",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.83.0/boost-1.83.0.zip",
      "dest": "external-packages/Boost",
      "sha256": "9effa3d7f9d92b8e33e2b41d82f4358f97ff7c588d5918720339f2b254d914c6"
     },
     {
      "type": "file",
      "url": "https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.bz2",
      "dest": "external-packages/MPFR",
      "sha256": "b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0"
     },
     {
      "type": "file",
      "url": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v2.5.5.zip",
      "dest": "external-packages/OpenEXR",
      "sha256": "0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de"
     },
     {
      "type": "file",
      "url": "https://github.com/Blosc/c-blosc/archive/8724c06e3da90f10986a253814af18ca081d8de0.zip",
      "dest": "external-packages/Blosc",
      "sha256": "53986fd04210b3d94124b7967c857f9766353e576a69595a9393999e0712c035"
     },
     {
      "type": "file",
      "url": "https://github.com/catchorg/Catch2/archive/refs/tags/v3.8.0.zip",
      "dest": "external-packages/Catch2",
      "sha256": "bffd2c45a84e5a4b0c17e695798e8d2f65931cbaf5c7556d40388d1d8d04eb83"
     },
     {
      "type": "file",
      "url": "https://github.com/CGAL/cgal/archive/refs/tags/v5.6.2.zip",
      "dest": "external-packages/CGAL",
      "sha256": "29acaeee5a76a95029fac23131bb1c3a4a75df9a0e7e43b465a1f32d0628f45d"
     },
     {
      "type": "file",
      "url": "https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2",
      "dest": "external-packages/GMP",
      "sha256": "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c"
     },
     {
      "type": "file",
      "url": "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.5.0.zip",
      "dest": "external-packages/TBB",
      "sha256": "83ea786c964a384dd72534f9854b419716f412f9d43c0be88d41874763e7bb47"
     },
     {
      "type": "file",
      "url": "https://sourceforge.net/projects/glew/files/glew/2.2.0/glew-2.2.0.zip",
      "dest": "external-packages/GLEW",
      "sha256": "a9046a913774395a095edcc0b0ac2d81c3aacca61787b39839b941e9be14e0d4"
     },
     {
      "type": "file",
      "url": "https://github.com/prusa3d/wxWidgets/archive/5462e7d7cfac645926188443e842171e107b312c.zip",
      "dest": "external-packages/wxWidgets",
      "sha256": "3ebb971ddb45ceea6d9b965c3d0266f44edae71f2a7daa5d48db34bd95aa878b"
     },
     {
      "type": "file",
      "url": "https://github.com/nlohmann/json/archive/refs/tags/v3.12.0.zip",
      "dest": "external-packages/json",
      "sha256": "34660b5e9a407195d55e8da705ed26cc6d175ce5a6b1fb957e701fb4d5b04022"
     },
     {
      "type": "file",
      "url": "https://github.com/floriankirsch/OpenCSG/archive/refs/tags/opencsg-1-4-2-release.zip",
      "dest": "external-packages/OpenCSG",
      "sha256": "51afe0db79af8386e2027d56d685177135581e0ee82ade9d7f2caff8deab5ec5"
     },
     {
      "type": "file",
      "url": "https://github.com/fltk/nanosvg/archive/abcd277ea45e9098bed752cf9c6875b533c0892f.zip",
      "dest": "external-packages/NanoSVG",
      "sha256": "e859938fbaee4b351bd8a8b3d3c7a75b40c36885ce00b73faa1ce0b98aa0ad34"
     },
     {
      "type": "file",
      "url": "https://github.com/prusa3d/openvdb/archive/339ee88230da33e3fefb133d8c1a9e16bef09144.zip",
      "dest": "external-packages/OpenVDB",
      "sha256": "098c67620a3884b7c09775e5819e88ff09e6c69b09c07695a4301f77f9382664"
     },
     {
      "type": "file",
      "url": "https://github.com/openssl/openssl/archive/OpenSSL_1_1_0l.tar.gz",
      "dest": "external-packages/OpenSSL",
      "sha256": "e2acf0cf58d9bff2b42f2dc0aee79340c8ffe2c5e45d3ca4533dd5d4f5775b1d"
     },
     {
      "type": "file",
      "url": "https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.15.1.zip",
      "dest": "external-packages/z3",
      "sha256": "5072309889a8fe73381303949114391ae2c976b7df64886f4cbdae349dd39cae"
     },
     {
      "type": "file",
      "url": "https://github.com/curl/curl/archive/refs/tags/curl-7_75_0.zip",
      "dest": "external-packages/CURL",
      "sha256": "a63ae025bb0a14f119e73250f2c923f4bf89aa93b8d4fafa4a9f5353a96a765a"
     },
     {
      "type": "file",
      "url": "https://github.com/qhull/qhull/archive/refs/tags/v8.1-alpha3.zip",
      "dest": "external-packages/Qhull",
      "sha256": "7bd9b5ffae01e69c2ead52f9a9b688af6c65f9a1da05da0a170fa20d81404c06"
     },
     {
      "type": "file",
      "url": "https://github.com/prusa3d/libbgcode/archive/6f4ad7ce6b0e638b760199d6611039a610a5a479.zip",
      "dest": "external-packages/LibBGCode",
      "sha256": "1e91c944a52022e8af46b05b463add59b3ac011a5e1982e60891d41149c56144"
     },
     {
      "type": "file",
      "dest": "deps/+TBB",
      "path": "patches/TBB/GNU.cmake"
     },
     {
      "type": "patch",
      "path": "patches/0001-apply-TBB-patch.patch"
     },
     {
      "type": "patch",
      "path": "patches/0001-don-t-build-occt-doc.patch"
     }
    ]
   },
   {
    "name": "PrusaSlicer",
    "buildsystem": "simple",
    "build-commands": [
     "set -e\nmkdir -p build && cd build\n/app/cmake/bin/cmake ../ \\\n  -GNinja \\\n  -DCMAKE_INSTALL_PREFIX=/app \\\n  -DCMAKE_INSTALL_LIBDIR=/app/lib \\\n  -DCMAKE_PREFIX_PATH=/app/deps/usr/local \\\n  -DSLIC3R_PCH=OFF \\\n  -DSLIC3R_FHS=ON \\\n  -DSLIC3R_ASAN=OFF \\\n  -DSLIC3R_GTK=3 \\\n  -DSLIC3R_STATIC=ON \\\n  -DSLIC3R_BUILD_TESTS=ON \\\n  -DSLIC3R_DESKTOP_INTEGRATION=OFF \\\n  -DCMAKE_BUILD_TYPE=Release\n/app/cmake/bin/cmake --build .\nctest --verbose\n/app/cmake/bin/cmake --build . --target install > /dev/null\n"
    ],
    "post-install": [
     "mkdir -p /app/share/runtime/locale\nfor i in $(ls /app/share/PrusaSlicer/localization)\ndo\n  lang=${i%[_@]*}\n  mkdir -p /app/share/runtime/locale/${lang}\n  mv /app/share/PrusaSlicer/localization/${i} /app/share/runtime/locale/${lang}\n  ln -rs /app/share/runtime/locale/${lang}/${i} /app/share/PrusaSlicer/localization/${i}\ndone\n",
     "install -Dm644 com.prusa3d.PrusaSlicer.metainfo.xml /app/share/metainfo/com.prusa3d.PrusaSlicer.metainfo.xml\ninstall -Dm644 com.prusa3d.PrusaSlicer.svg /app/share/icons/hicolor/scalable/apps/com.prusa3d.PrusaSlicer.svg\ninstall -Dm644 com.prusa3d.PrusaSlicer.png /app/share/icons/hicolor/256x256/apps/com.prusa3d.PrusaSlicer.png\ninstall -Dm644 com.prusa3d.PrusaSlicer.desktop /app/share/applications/com.prusa3d.PrusaSlicer.desktop\ninstall -Dm644 com.prusa3d.PrusaSlicer.GCodeViewer.svg /app/share/icons/hicolor/scalable/apps/com.prusa3d.PrusaSlicer.GCodeViewer.svg\ninstall -Dm644 com.prusa3d.PrusaSlicer.GCodeViewer.png /app/share/icons/hicolor/256x256/apps/com.prusa3d.PrusaSlicer.GCodeViewer.png\ninstall -Dm644 com.prusa3d.PrusaSlicer.GCodeViewer.desktop /app/share/applications/com.prusa3d.PrusaSlicer.GCodeViewer.desktop\ninstall set-dark-theme-variant.py /app/bin\ninstall uses-dark-theme.py /app/bin\ninstall entrypoint /app/bin\ninstall umount /app/bin\n",
     "mkdir -p /app/share/mime/packages/\ninstall -m644 -p -t /app/share/mime/packages com.prusa3d.PrusaSlicer.mime.xml\ninstall -Dm644 com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.svg \\\n  /app/share/icons/hicolor/scalable/mimetypes/com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.svg\ninstall -Dm644 com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.png \\\n  /app/share/icons/hicolor/128x128/mimetypes/com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.png\ninstall -Dm644 com.prusa3d.PrusaSlicer.text-x-gcode.svg \\\n  /app/share/icons/hicolor/scalable/mimetypes/com.prusa3d.PrusaSlicer.text-x-gcode.svg\ninstall -Dm644 com.prusa3d.PrusaSlicer.text-x-gcode.png \\\n  /app/share/icons/hicolor/128x128/mimetypes/com.prusa3d.PrusaSlicer.text-x-gcode.png\nupdate-mime-database /app/share/mime\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/prusa3d/PrusaSlicer",
      "tag": "version_2.9.6"
     },
     {
      "type": "patch",
      "path": "patches/0001-don-t-call-show_downloader_registration_dialog-if-SL.patch"
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's/+UNKNOWN/+flathub.org/g' version.inc",
       "cp src/platform/unix/PrusaSlicer.desktop ./com.prusa3d.PrusaSlicer.desktop\ncp src/platform/unix/PrusaGcodeviewer.desktop ./com.prusa3d.PrusaSlicer.GCodeViewer.desktop\n",
       "sed -i 's/^\\(MimeType=.*\\)/\\1x-scheme-handler\\/prusaslicer;/g' com.prusa3d.PrusaSlicer.desktop\n",
       "sed -i 's/Exec=prusa-slicer %F/Exec=entrypoint --single-instance-on-url %u/g' com.prusa3d.PrusaSlicer.desktop\nsed -i 's/Exec=prusa-slicer/Exec=entrypoint/g' com.prusa3d.PrusaSlicer.GCodeViewer.desktop\n\ncat <<EOT >> com.prusa3d.PrusaSlicer.desktop\nActions=GCodeViewer;\n\n[Desktop Action GCodeViewer]\nExec=entrypoint --gcodeviewer %F\nName=G-Code Viewer\nName[de]=G-Code Vorschau\nIcon=com.prusa3d.PrusaSlicer.GCodeViewer\n\nEOT\n",
       "sed -i 's/Icon=PrusaSlicer-gcodeviewer/Icon=com.prusa3d.PrusaSlicer.GCodeViewer/g' com.prusa3d.PrusaSlicer.GCodeViewer.desktop\nsed -i 's/Icon=PrusaSlicer-gcodeviewer/Icon=com.prusa3d.PrusaSlicer.GCodeViewer/g' com.prusa3d.PrusaSlicer.desktop\nsed -i 's/Icon=PrusaSlicer/Icon=com.prusa3d.PrusaSlicer/g' com.prusa3d.PrusaSlicer.desktop\n"
      ]
     },
     {
      "type": "file",
      "path": "com.prusa3d.PrusaSlicer.metainfo.xml"
     },
     {
      "type": "file",
      "path": "set-dark-theme-variant.py"
     },
     {
      "type": "file",
      "path": "uses-dark-theme.py"
     },
     {
      "type": "file",
      "path": "entrypoint"
     },
     {
      "type": "file",
      "path": "umount"
     },
     {
      "type": "file",
      "path": "com.prusa3d.PrusaSlicer.mime.xml"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.svg"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.application-vnd-ms-3mfdocument.png"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.text-x-gcode.svg"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.text-x-gcode.png"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.svg"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.png"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.GCodeViewer.svg"
     },
     {
      "type": "file",
      "path": "icons/com.prusa3d.PrusaSlicer.GCodeViewer.png"
     }
    ]
   }
  ]
 }
}