2018-10-29 23:20:15 +00:00
# Build processes
2020-12-01 01:56:59 +00:00
## Linux and Android
We use [Briar's Tor Reproducer ](https://code.briarproject.org/briar/tor-reproducer ) to build our tor linux and android binaries.
```
git clone https://code.briarproject.org/briar/tor-reproducer.git
```
Either edit the tor-versions.json or copy in the one from this directory
```
2021-06-23 06:44:04 +00:00
docker build --tag tor-reproducer:0.4.4.9 .
docker run tor-reproducer:0.4.4.9 ./build-tor.py 0.4.4.9
2020-12-01 01:56:59 +00:00
docker ps -a
2021-06-23 06:44:04 +00:00
docker cp 2798b62ed756:/opt/tor-reproducer/tor_arm_pie.zip tor-0.4.4.9-arm_pie.zip
docker cp 2798b62ed756:/opt/tor-reproducer/tor_arm64_pie.zip tor-0.4.4.9-arm64_pie.zip
docker cp 2798b62ed756:/opt/tor-reproducer/tor_linux-x86_64.zip tor-0.4.4.9-linux-x86_64.zip
docker cp 2798b62ed756:/opt/tor-reproducer/tor_linux-aarch64.zip tor-0.4.4.9-linux-aarch64.zip
2020-12-01 01:56:59 +00:00
```
Where 937d81a46c33 is the container ID from `docker ps -a` .
Cleanup with
```
docker container prune
2021-06-23 06:44:04 +00:00
docker rmi tor-reproducer:0.4.4.9
2020-12-01 01:56:59 +00:00
```
2021-06-23 06:44:04 +00:00
## 0.4.5.x and Beyond
As of testing (2021.06) some issues with tor-reproducer and newer tor have been causing build fails. Some warnings around `tput` have solutions, but the final error of `glob.h: No such file or directory` doesn't yet have a solution. As such tor reproducer will complete linux builds but fail durring android.
2020-12-01 01:56:59 +00:00
## Windows
2021-08-17 19:36:33 +00:00
For Window we are bundling binaries from the [Tor Windows Expert Bundle ](https://www.torproject.org/download/tor/ ).
2020-12-01 01:56:59 +00:00
## Historical
2018-10-29 23:20:15 +00:00
Previously we used some scripts that have been moved to `oldscripts` . They did not generate correct android binaries.