Packaged desktop builds can now carry a self-contained ROOT + musrfit runtime under <resources>/runtime. muSRFitelec.js detects it only when bin/musrfit or bin/musrt0 is present, prefers it over the host installation (still yielding to a user-configured musrfit binaries directory), and spawns tools with ROOTSYS, MUSRFITPATH, LD_LIBRARY_PATH, and PATH pointed at the bundle. When the bundle is absent the previous host-installation behaviour is unchanged. packaging/runtime builds the tree in a low-glibc manylinux container, rewrites runpaths to $ORIGIN-relative paths, bundles the non-system shared-library closure, and ships a default musrfit_startup.xml. The tree is git-ignored and delivered through the electron-builder extraResources entry. Add tests/electron-bundled-runtime.test.js and update CHANGELOG, platforms.rst, and preferences.rst (Sphinx HTML/PDF rebuilt).
54 lines
1.4 KiB
Docker
54 lines
1.4 KiB
Docker
# Copyright (C) 2026 Zaher Salman
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
# Build container for the relocatable ROOT + musrfit runtime bundled with
|
|
# muSRFlow. The default base is a manylinux_2_28 image (AlmaLinux 8, glibc
|
|
# 2.28): it has a C++17 toolchain and gives a low glibc floor for the AppImage.
|
|
# Override BASE_IMAGE to target a different baseline (for example a custom
|
|
# manylinux2014 + devtoolset image), but note ROOT 6.38 will not build with the
|
|
# stock CentOS 7 GCC 4.8.
|
|
|
|
ARG BASE_IMAGE=quay.io/pypa/manylinux_2_28_x86_64
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ARG DEPS=""
|
|
|
|
RUN dnf -y install \
|
|
cmake \
|
|
gcc \
|
|
gcc-c++ \
|
|
make \
|
|
wget \
|
|
git \
|
|
which \
|
|
tar \
|
|
gzip \
|
|
patchelf \
|
|
gsl-devel \
|
|
fftw-devel \
|
|
libxml2-devel \
|
|
boost-devel \
|
|
openssl-devel \
|
|
pcre-devel \
|
|
zlib-devel \
|
|
xz-devel \
|
|
freetype-devel \
|
|
fontconfig-devel \
|
|
libpng-devel \
|
|
libjpeg-turbo-devel \
|
|
libtiff-devel \
|
|
mesa-libGL-devel \
|
|
mesa-libGLU-devel \
|
|
libX11-devel \
|
|
libXext-devel \
|
|
libXft-devel \
|
|
libXpm-devel \
|
|
libXcursor-devel \
|
|
libXrandr-devel \
|
|
libXi-devel \
|
|
python3 \
|
|
&& dnf clean all
|
|
|
|
WORKDIR /work
|
|
ENTRYPOINT ["/work/packaging/runtime/build-runtime.sh"]
|