Install

This page installs the program flight-manual from a release or from source, and checks that it runs.

The release for Linux

Each release has the program for Linux on x86_64, with the Tcl runtime in it, and the file SHA256SUMS.

version=0.1.0
curl -fsSLO https://github.com/beetlebugorg/flight-manual/releases/download/v$version/flight-manual-$version-x86_64-linux.tar.gz
curl -fsSLO https://github.com/beetlebugorg/flight-manual/releases/download/v$version/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
tar xzf flight-manual-$version-x86_64-linux.tar.gz
./flight-manual-$version-x86_64-linux/flight-manual version

Put the file flight-manual in a folder of the PATH.

The build from source

The build needs a ztcl with the module ztcl::markdown. No release of ztcl has the module yet, so build ztcl from the commit of .github/actions/setup-ztcl/action.yml of this repository. The build of ztcl needs Zig 0.17.0.

git clone https://github.com/beetlebugorg/ztcl
cd ztcl
git checkout COMMIT
zig build -Doptimize=ReleaseSafe
export PATH=$PWD/zig-out/bin:$PATH
cd ..
git clone https://github.com/beetlebugorg/flight-manual
cd flight-manual
ztcl test
ztcl build
build/flight-manual version

ztcl run --allow file,channels,interp build OUT runs the program from the source with no build.

The capabilities

The program has the capabilities file, channels, and interp of ztcl, and no other: no exec, no socket, and no env. It reads the files of the site and writes the files of the output folder. interp makes a child interpreter for each plugin, and the child has only the capabilities that the site file gives in allow.

Next: A first site.