Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian/gitian-build.sh
Show All 11 Lines | |||||
linux=true | linux=true | ||||
windows=true | windows=true | ||||
osx=true | osx=true | ||||
# Other Basic variables | # Other Basic variables | ||||
SIGNER= | SIGNER= | ||||
VERSION= | VERSION= | ||||
commit=false | commit=false | ||||
url=https://github.com/bitcoin/bitcoin | url=https://github.com/Bitcoin-ABC/bitcoin-abc | ||||
proc=2 | proc=2 | ||||
mem=2000 | mem=2000 | ||||
lxc=true | lxc=true | ||||
osslTarUrl=http://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-1.7.1.tar.gz | osslTarUrl=http://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-1.7.1.tar.gz | ||||
osslPatchUrl=https://bitcoincore.org/cfields/osslsigncode-Backports-to-1.7.1.patch | osslPatchUrl=https://bitcoincore.org/cfields/osslsigncode-Backports-to-1.7.1.patch | ||||
scriptName=$(basename -- "$0") | scriptName=$(basename -- "$0") | ||||
signProg="gpg --detach-sign" | signProg="gpg --detach-sign" | ||||
commitFiles=true | commitFiles=true | ||||
▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | then | ||||
COMMIT="v${VERSION}" | COMMIT="v${VERSION}" | ||||
fi | fi | ||||
echo ${COMMIT} | echo ${COMMIT} | ||||
# Setup build environment | # Setup build environment | ||||
if [[ $setup = true ]] | if [[ $setup = true ]] | ||||
then | then | ||||
sudo apt-get install ruby apache2 git apt-cacher-ng python-vm-builder qemu-kvm qemu-utils | sudo apt-get install ruby apache2 git apt-cacher-ng python-vm-builder qemu-kvm qemu-utils | ||||
git clone https://github.com/bitcoin-core/gitian.sigs.git | # FIXME: Replace with ABC-equivalent repos | ||||
git clone https://github.com/bitcoin-core/bitcoin-detached-sigs.git | #git clone https://github.com/bitcoin-core/gitian.sigs.git | ||||
#git clone https://github.com/bitcoin-core/bitcoin-detached-sigs.git | |||||
git clone https://github.com/devrandom/gitian-builder.git | git clone https://github.com/devrandom/gitian-builder.git | ||||
pushd ./gitian-builder | pushd ./gitian-builder | ||||
if [[ -n "$USE_LXC" ]] | if [[ -n "$USE_LXC" ]] | ||||
then | then | ||||
sudo apt-get install lxc | sudo apt-get install lxc | ||||
bin/make-base-vm --suite trusty --arch amd64 --lxc | bin/make-base-vm --suite trusty --arch amd64 --lxc | ||||
else | else | ||||
bin/make-base-vm --suite trusty --arch amd64 | bin/make-base-vm --suite trusty --arch amd64 | ||||
Show All 14 Lines | then | ||||
mkdir -p ./bitcoin-binaries/${VERSION} | mkdir -p ./bitcoin-binaries/${VERSION} | ||||
# Build Dependencies | # Build Dependencies | ||||
echo "" | echo "" | ||||
echo "Building Dependencies" | echo "Building Dependencies" | ||||
echo "" | echo "" | ||||
pushd ./gitian-builder | pushd ./gitian-builder | ||||
mkdir -p inputs | mkdir -p inputs | ||||
wget -N -P inputs $osslPatchUrl | # FIXME: Pull patches from a trusted source | ||||
wget -N -P inputs $osslTarUrl | #wget -N -P inputs $osslPatchUrl | ||||
#wget -N -P inputs $osslTarUrl | |||||
make -C ../bitcoin/depends download SOURCES_PATH=`pwd`/cache/common | make -C ../bitcoin/depends download SOURCES_PATH=`pwd`/cache/common | ||||
# Linux | # Linux | ||||
if [[ $linux = true ]] | if [[ $linux = true ]] | ||||
then | then | ||||
echo "" | echo "" | ||||
echo "Compiling ${VERSION} Linux" | echo "Compiling ${VERSION} Linux" | ||||
echo "" | echo "" | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |