Changeset View
Changeset View
Standalone View
Standalone View
doc/gitian-building.md
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
It is possible to download the resulting archive directly for users that desire to do so: | It is possible to download the resulting archive directly for users that desire to do so: | ||||
```bash | ```bash | ||||
curl -LO https://storage.googleapis.com/f4936e83b2dcbca742be51fb9692b153/MacOSX10.11.sdk.tar.gz | curl -LO https://storage.googleapis.com/f4936e83b2dcbca742be51fb9692b153/MacOSX10.11.sdk.tar.gz | ||||
echo "4732b52b5ebe300c8c91cbeed6d19d59c1ff9c56c7a1dd6cfa518b9c2c72abde MacOSX10.11.sdk.tar.gz" | sha256sum -c | echo "4732b52b5ebe300c8c91cbeed6d19d59c1ff9c56c7a1dd6cfa518b9c2c72abde MacOSX10.11.sdk.tar.gz" | sha256sum -c | ||||
``` | ``` | ||||
Alternatively, you can skip the OSX build by adding `--os=lw` below. | Alternatively, you can skip the macOS build by adding `--os=lw` below. | ||||
Initial Gitian Setup | Initial Gitian Setup | ||||
-------------------- | -------------------- | ||||
The `gitian-build.py` script will checkout different release tags, so it's best to copy it: | The `gitian-build.py` script will checkout different release tags, so it's best to copy it: | ||||
```bash | ```bash | ||||
cp bitcoin-abc/contrib/gitian-build.py . | cp bitcoin-abc/contrib/gitian-build.py . | ||||
``` | ``` | ||||
You only need to do this once: | You only need to do this once: | ||||
```bash | ```bash | ||||
./gitian-build.py --setup satoshi 0.18.5 | ./gitian-build.py --setup satoshi 0.18.5 | ||||
``` | ``` | ||||
Where `satoshi` is your Github name and `0.18.5` is the most recent tag (without `v`). | Where `satoshi` is your Github name and `0.18.5` is the most recent tag (without `v`). | ||||
Build binaries | Build binaries | ||||
-------------- | -------------- | ||||
Windows and OSX have code signed binaries, but those won't be available until a few developers have gitian signed the non-codesigned binaries. | Windows and macOS have code signed binaries, but those won't be available until a few developers have gitian signed the non-codesigned binaries. | ||||
To build the most recent tag: | To build the most recent tag: | ||||
```bash | ```bash | ||||
./gitian-build.py --detach-sign --no-commit -b satoshi 0.18.5 | ./gitian-build.py --detach-sign --no-commit -b satoshi 0.18.5 | ||||
``` | ``` | ||||
To speed up the build, use `-j 5 -m 5000` as the first arguments, where `5` is the number of CPU's you allocated to the VM plus one, and 5000 is a little bit less than then the MB's of RAM you allocated. | To speed up the build, use `-j 5 -m 5000` as the first arguments, where `5` is the number of CPU's you allocated to the VM plus one, and 5000 is a little bit less than then the MB's of RAM you allocated. | ||||
Show All 11 Lines |