blueprint-freespeech / ricochet-build

Repo for building ricochet-refresh
https://github.com/blueprint-freespeech/ricochet-refresh
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Ricochet Build

This project is used to build and sign Ricochet-Refresh releases for all of our supported platforms: Windows (x86 and x86_64), Linux (x86 and x86_64), and macOS (x86_64 and aarch64). All targets may be built, packaged, and signed from a single Linux host.

A previous version of this repository was used to build Ricochet-Refresh prior to version 3.0.17. It was a fork of tor-browser-build) can be found in the legacy branch. This latest version is a complete re-write and no longer has any legacy tor-browser related cruft.

Installing Dependencies

ricochet-build uses the Tor Project's reproducible build manager (RBM) to manage the builds and dependencies. To build Ricochet Refresh, you need a recent Linux distribution which supports user_namespaces(7). You will need to install the uidmap package. RBM also depends on several perl modules:

On Debian-based systems, you can install them with:

# apt-get install libdata-dump-perl libdata-uuid-perl libdatetime-perl \
                  libdigest-sha-perl libfile-copy-recursive-perl \
                  libfile-slurp-perl libio-all-perl libio-captureoutput-perl \
                  libio-handle-util-perl libjson-perl \
                  libparallel-forkmanager-perl libpath-tiny-perl \
                  libsort-versions-perl libstring-shellquote-perl \
                  libtemplate-perl libxml-libxml-perl libxml-writer-perl \
                  libyaml-libyaml-perl git mercurial uidmap

For more thorough (and up-to-date) instructions please see the tor-browser-build README.

Building

ricochet-build offers three different build channels:

To build each of these channels for all supported platforms, the following make targets are provided:

The outputs of each of these build targets will be placed under the ./release/${channel}/unsigned directory.

For signed-releases, the additional make targets are provided:

The outputs of each of these build targets will be placed under the ./release/${channel}/signed directory.

To sign releases locally, you will need to configure your rbm.local.conf file to point the build system to the relevant keys, passwords, and libraries used by the various signing tools.

There are also more specific targets for building just a particular architecture's installation packages. In general, these targets are of the form:

For the specific supported targets, please see the Makefile. The built packages will appear in the ./out/packages directory. The following package formats are supported:

Finally, an rbm.local.conf.example file is provided with various options for developer use. Rename this file to rbm.local.conf to apply its settings over the default ones.