The install script
- Reads the version to install:
PROVING_VERSION, or else the newest of the channel (PROVING_CHANNEL:stable, the default, orcanary), from a pointer whose signature it checks first. - Downloads the checksums for that version and checks their signature against the release key written in the script.
- Downloads the binary for this machine and checks its SHA-256 against those checksums.
- Runs the new binary’s self-test (
--self-test). If that fails, it checks and uses the fallback archive instead (below). - Moves it into place,
~/.local/binunlessPROVING_INSTALL_DIRsays otherwise.
sudo, never edits your shell’s startup files (it prints a PATH hint instead), and contacts only the release host. Read it before you run it: each release’s notes give the script’s SHA-256.
Verify the script before it runs
The script checks everything it downloads, but the script itself is not checked before it runs: it is only as trustworthy as the release host and your connection to it. To check it first, take it from the release’s own directory, whoseSHA256SUMS is signed with the release key:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOGnseXgnQWCR2m3Li2alsbECxWj/bAlLXzd7zVifh0B.
A Homebrew formula comes with the first public release (coming, M1).
Check the installation
--full adds the checks that take longer, and --json prints the report in the self-test report format.
Pin a version for CI
Set the version, so every job installs the same binary:A machine with no network
Download the binary (.gz) or the fallback archive (.tar.gz) on another machine, with its SHA256SUMS and SHA256SUMS.sig, copy them over, and install from the file:
--sha256 <hex> it checks the file against that hash instead of the signed checksums.
Fallback
If the binary does not start on this machine (its self-test fails, or the operating system refuses it), use the fallback archive: the same program as a Node.js runtime, the bundle and a launcher. The install script switches to it on its own when the self-test fails. To install it by hand, downloadproving-<version>-<platform>.tar.gz with the checksums, and install it from the file as above. The archive is checked the same way as the binary.
Update
update checks the new version’s signature and checksum before it replaces the binary. Set PROVING_NO_UPDATE_CHECK=1 to stop the daily notice of a newer version.
Remove
Delete the binary, then your data if you want it gone too:~/.local/share/proving (recordings, runs, twins, keys) and ~/.config/proving. The project directory in your repository is yours.