Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
#!/bin/sh
set -eu
# Runs offline at install time inside org.freedesktop.Platform. The upstream artifact is SculptForge's official
# Linux tarball (CPack): one top-level folder, SculptForge-<version>-linux-<arch>/, holding bin/sculptforge,
# bin/sculptforge-cli and share/ (the app finds share/sculptforge next to bin/). Unpack it to a fixed path the
# wrapper execs: /app/extra/sculptforge.
extra_root="${EXTRA_ROOT:-/app/extra}"
cd "$extra_root"
[ -f sculptforge.tar.gz ] || { echo "missing extra-data: sculptforge.tar.gz" >&2; exit 1; }
rm -rf sculptforge staging
mkdir staging
# --no-same-owner: the archive records the build user's uid, which a system install (root, no capabilities)
# cannot restore.
bsdtar --no-same-owner -xf sculptforge.tar.gz -C staging
# The top-level folder is versioned: read it from the archive and refuse anything but exactly one.
set -- staging/*/
[ "$#" -eq 1 ] && [ -d "$1" ] || { echo "expected one top-level folder in the tarball, found: $*" >&2; exit 1; }
mv "$1" sculptforge
[ -x sculptforge/bin/sculptforge ] || { echo "sculptforge/bin/sculptforge not found in the tarball" >&2; exit 1; }
rm -rf staging sculptforge.tar.gz