This repository contains tools for building bundles for Tectonic, each of which is a complete TeX distribution.
You do not need this repository to build Tectonic. \ You only need this if you want to make your own bundles of TeX files.
To use these tools, you will need:
pv
, GNU patch
and diff
. Patch is called by builder
while running select
.The following bundles are available:
texlive2023
: based on texlive2023-20230313
.Before building any bundles, you'll need to download the prerequisite files.
Usually, this is a TeXlive tarball with a version that matches the bundle you want to build. See bundle.toml
in the bundle you want to build, the version of TeXlive and a link to the tarball should
be provided.
To build a bundle, run the following:
cd builder
cargo run -- --build-dir <working_directory> <path to bundle.toml>
For example, cargo run -- --build-dir ../build "../bundles/texlive2023/bundle.toml"
\
See cargo run -- --help
for detailed information.
This runs the following jobs, in order. Individual jobs may be run by specifying --job <job name>
.
select
pack
The contents of <build dir>/content
may be inspected and edited after running select
. \
This should only be used to debug bundles. The contents of this directory are documented here.
./bundles
is a bundle specification, documented here.doc/formatspec-v1.md
.