It is possible to build Calamares as an AppImage (perhaps other containerized formats as well). This might make sense for OEM phase-1 deployments in environments where Calamares is not using the native toolkit.
You will need
These tools should run -- they are bundled as AppImages after all -- on any modern Linux system. The AppImage packaging documentation explains how the whole tooling works.
If the tools are not present, the build script (see below) will download them, but you should save them for later.
From the source directory, run ci/AppImage.sh
:
--tools-dir
to copy the tools from a local cache rather than
downloading them again.--cmake-args
for special CMake handling.--skip-build
to avoid rebuilding Calamares all the time.--config-dir
to copy in Calamares configuration files (e.g.
settings.conf and the module configuration files) from a given
directory.The build process will:
.desktop
file to be AppImage-compatibleThe resulting AppImage, Calamares-x86_64.AppImage
, can be run as if it is
a regular Calamares executable. For internal reasons it always passes the
-X
flag; any other command-line flags are passed in unchanged. Internally,
XDG_*_DIRS
are used to get Calamares to find the resources inside the AppImage
rather than in the host system.