{
 "app_id": "io.github.softfever.OrcaSlicer",
 "source_url": "https://raw.githubusercontent.com/wzx011011/3D-Printer/master/flatpak/io.github.softfever.OrcaSlicer.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "45",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--share=network",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-run/gvfs",
  "--filesystem=/run/media",
  "--filesystem=/media",
  "--talk-name=io.github.softfever.OrcaSlicer.InstanceCheck.*",
  "--system-talk-name=org.freedesktop.UDisks2",
  "--env=BAMBU_STUDIO_DARK_THEME=false"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-20T12:57:10.272015+00:00",
 "manifest": {
  "app-id": "io.github.softfever.OrcaSlicer",
  "runtime": "org.gnome.Platform",
  "runtime-version": "45",
  "sdk": "org.gnome.Sdk",
  "command": "entrypoint",
  "separate-locales": true,
  "rename-icon": "OrcaSlicer",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--share=network",
   "--device=all",
   "--filesystem=home",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=/run/media",
   "--filesystem=/media",
   "--talk-name=io.github.softfever.OrcaSlicer.InstanceCheck.*",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--env=BAMBU_STUDIO_DARK_THEME=false"
  ],
  "modules": [
   {
    "name": "gst-plugins-good",
    "buildsystem": "meson",
    "config-opts": [
     "-Dauto_features=disabled",
     "-Djpeg=enabled",
     "-Ddoc=disabled",
     "-Dexamples=disabled",
     "-Dtests=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.22.8.tar.xz",
      "sha256": "e305b9f07f52743ca481da0a4e0c76c35efd60adaf1b0694eb3bb021e2137e39"
     }
    ]
   },
   {
    "name": "xprop",
    "sources": [
     {
      "type": "archive",
      "url": "http://mirrors.ircam.fr/pub/x.org/individual/app/xprop-1.2.5.tar.gz",
      "sha256": "b7bf6b6be6cf23e7966a153fc84d5901c14f01ee952fbd9d930aa48e2385d670"
     }
    ]
   },
   {
    "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-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": "mesa",
    "buildsystem": "meson",
    "config-opts": [
     "-Dosmesa=classic",
     "-Ddri-drivers=[]",
     "-Dgallium-drivers=[]",
     "-Dvulkan-drivers=[]",
     "-Dplatforms=[]"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "-Dlibunwind=disabled"
       ]
      }
     }
    },
    "cleanup": [
     "/share/drirc.d",
     "/include",
     "*.a"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.mesa3d.org/mesa-20.2.6.tar.xz",
      "sha256": "f12ca3c6c622f11cd79ad66b4220f04514fa96f795062fe92a37339ab19885db"
     }
    ]
   },
   {
    "name": "glu",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.osuosl.org/pub/blfs/conglomeration/glu/glu-9.0.2.tar.xz",
      "sha256": "6e7280ff585c6a1d9dfcdf2fca489251634b3377bfc33c29e4002466a38d02d4"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/*.a",
     "/lib/*.la",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "kde-extra-cmake-modules",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/KDE/extra-cmake-modules",
      "tag": "v5.249.0"
     }
    ],
    "cleanup": [
     "/"
    ]
   },
   {
    "name": "orca_wxwidgets",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir builddir && cd builddir\ncmake ../ -GNinja \\\n  -DwxBUILD_PRECOMP=ON \\\n  -DwxBUILD_TOOLKIT=gtk3 \\\n  -DwxBUILD_DEBUG_LEVEL=0 \\\n  -DwxBUILD_SAMPLES=OFF \\\n  -DwxBUILD_SHARED=ON \\\n  -DwxUSE_MEDIACTRL=ON \\\n  -DwxUSE_DETECT_SM=OFF \\\n  -DwxUSE_UNICODE=ON \\\n  -DwxUSE_PRIVATE_FONTS=ON \\\n  -DwxUSE_OPENGL=ON \\\n  -DwxUSE_WEBREQUEST=ON \\\n  -DwxUSE_WEBVIEW=ON \\\n  -DwxUSE_WEBVIEW_EDGE=OFF \\\n  -DwxUSE_WEBVIEW_IE=OFF \\\n  -DwxUSE_REGEX=builtin \\\n  -DwxUSE_LIBSDL=OFF \\\n  -DwxUSE_XTEST=OFF \\\n  -DwxUSE_STC=OFF \\\n  -DwxUSE_AUI=ON \\\n  -DwxUSE_LIBPNG=sys \\\n  -DwxUSE_ZLIB=sys \\\n  -DwxUSE_LIBJPEG=sys \\\n  -DwxUSE_LIBTIFF=sys \\\n  -DwxUSE_EXPAT=sys \\\n  -DBUILD_SHARED_LIBS:BOOL=ON \\\n  -DCMAKE_INSTALL_PREFIX:STRING=/app \\\n  -DCMAKE_PREFIX_PATH=/app \\\n  -DCMAKE_BUILD_TYPE=Release\ncmake --build . --target install -j$FLATPAK_BUILDER_N_JOBS\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/SoftFever/Orca-deps-wxWidgets",
      "branch": "master",
      "path": "../"
     }
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "*.cmake",
     "/include",
     "/app/bin/*"
    ]
   },
   {
    "name": "orca_deps",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir deps/build && cd deps/build\ncmake ../ \\\n  -DDEP_WX_GTK3=ON \\\n  -DDEP_DOWNLOAD_DIR=/run/build/orca_deps/external-packages \\\n  -DCMAKE_PREFIX_PATH=/app \\\n  -DDESTDIR=/app \\\n  -DCMAKE_INSTALL_LIBDIR=/app/lib \\\n  -DFLATPAK=ON \\\n  -DCMAKE_INSTALL_PREFIX=/app\ncmake --build . \nrm -r /run/build/orca_deps/external-packages\n"
    ],
    "cleanup": [
     "/app/include",
     "*.a",
     "*.la",
     "/app/lib/cmake"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../"
     },
     {
      "type": "file",
      "url": "https://github.com/tamasmeszaros/c-blosc/archive/refs/heads/v1.17.0_tm.zip",
      "dest": "external-packages/Blosc",
      "sha256": "dcb48bf43a672fa3de6a4b1de2c4c238709dad5893d1e097b8374ad84b1fc3b3"
     },
     {
      "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/CGAL/cgal/archive/refs/tags/v5.4.zip",
      "dest": "external-packages/CGAL",
      "sha256": "d7605e0a5a5ca17da7547592f6f6e4a59430a0bc861948974254d0de43eab4c0"
     },
     {
      "type": "file",
      "url": "https://github.com/SoftFever/OrcaSlicer_deps/releases/download/gmp-6.2.1/gmp-6.2.1.tar.bz2",
      "dest": "external-packages/GMP",
      "sha256": "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c"
     },
     {
      "type": "file",
      "url": "https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.bz2",
      "dest": "external-packages/MPFR",
      "sha256": "b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0"
     },
     {
      "type": "file",
      "url": "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz",
      "dest": "external-packages/NLopt",
      "sha256": "c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae"
     },
     {
      "type": "file",
      "url": "https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_6_0.zip",
      "dest": "external-packages/OCCT",
      "sha256": "28334f0e98f1b1629799783e9b4d21e05349d89e695809d7e6dfa45ea43e1dbc"
     },
     {
      "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/opencv/opencv/archive/refs/tags/4.6.0.tar.gz",
      "dest": "external-packages/OpenCV",
      "sha256": "1ec1cba65f9f20fe5a41fda1586e01c70ea0c9a6d7b67c9e13edf0cfe2239277"
     },
     {
      "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/tamasmeszaros/openvdb/archive/a68fd58d0e2b85f01adeb8b13d7555183ab10aa5.zip",
      "dest": "external-packages/OpenVDB",
      "sha256": "f353e7b99bd0cbfc27ac9082de51acf32a8bc0b3e21ff9661ecca6f205ec1d81"
     },
     {
      "type": "file",
      "url": "https://github.com/qhull/qhull/archive/v8.0.1.zip",
      "dest": "external-packages/Qhull",
      "sha256": "5287f5edd6a0372588f5d6640799086a4033d89d19711023ef8229dd9301d69b"
     },
     {
      "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://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.gz",
      "dest": "external-packages/Boost",
      "sha256": "4d27e9efed0f6f152dc28db6430b9d3dfb40c0345da7342eaa5a987dde57bd95"
     },
     {
      "type": "file",
      "url": "https://github.com/glfw/glfw/archive/refs/tags/3.3.7.zip",
      "dest": "external-packages/GLFW",
      "sha256": "e02d956935e5b9fb4abf90e2c2e07c9a0526d7eacae8ee5353484c69a2a76cd0"
     }
    ]
   },
   {
    "name": "OrcaSlicer",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p build && cd build\nCXXFLAGS=-std=gnu++20 cmake ../ \\\n  -DSLIC3R_PCH=OFF \\\n  -DSLIC3R_FHS=ON \\\n  -DSLIC3R_GTK=3 \\\n  -DSLIC3R_STATIC=ON \\\n  -DSLIC3R_BUILD_TESTS=OFF \\\n  -DSLIC3R_DESKTOP_INTEGRATION=OFF \\\n  -DCMAKE_BUILD_TYPE=Release \\\n  -DFLATPAK=ON \\\n  -DBBL_RELEASE_TO_PUBLIC=1 \\\n  -DCMAKE_PREFIX_PATH=/app \\\n  -DCMAKE_INSTALL_PREFIX=/app\nCXXFLAGS=-std=gnu++20 cmake --build . --target install -j$FLATPAK_BUILDER_N_JOBS\n"
    ],
    "cleanup": [
     "/include"
    ],
    "post-install": [
     "install -Dm644 -t /app/share/icons/hicolor/scalable/apps/ resources/images/OrcaSlicer.svg\ninstall -Dm644 ${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml\nmv /app/share/applications/OrcaSlicer.desktop /app/share/applications/${FLATPAK_ID}.desktop\ndesktop-file-edit --set-key=Exec --set-value=\"entrypoint %U\" /app/share/applications/${FLATPAK_ID}.desktop\ninstall -Dm755 set-dark-theme-variant.py /app/bin\ninstall -Dm755 entrypoint /app/bin\ninstall -Dm755 umount /app/bin\n"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../"
     },
     {
      "type": "file",
      "path": "io.github.softfever.OrcaSlicer.metainfo.xml"
     },
     {
      "type": "file",
      "path": "set-dark-theme-variant.py"
     },
     {
      "type": "file",
      "path": "entrypoint"
     },
     {
      "type": "file",
      "path": "umount"
     }
    ]
   }
  ]
 }
}