Skip to content

Commit

Permalink
Update gitian-build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-shaw authored Sep 6, 2022
1 parent c825072 commit e402c55
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions contrib/gitian-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commit=false
url=https://github.com/GarlicoinOrg/Garlicoin
proc=2
mem=2000
lxc=true
lxc=false
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
scriptName=$(basename -- "$0")
Expand All @@ -30,7 +30,7 @@ commitFiles=true
read -d '' usage <<- EOF
Usage: $scriptName [-c|u|v|b|s|B|o|h|j|m|] signer version
Run this script from the directory containing the garlicoin, gitian-builder, gitian.sigs.ltc, and garlicoin-detached-sigs.
Run this script from the directory containing the garlicoin, gitian-builder, gitian.sigs.grlc, and garlicoin-detached-sigs.
Arguments:
signer GPG signer to sign each build assert file
Expand Down Expand Up @@ -229,7 +229,7 @@ echo ${COMMIT}
if [[ $setup = true ]]
then
sudo apt-get install ruby apache2 git apt-cacher-ng python-vm-builder qemu-kvm qemu-utils
git clone https://github.com/GarlicoinOrg/gitian.sigs.ltc.git
git clone https://github.com/GarlicoinOrg/gitian.sigs.grlc.git
git clone https://github.com/GarlicoinOrg/garlicoin-detached-sigs.git
git clone https://github.com/devrandom/gitian-builder.git
pushd ./gitian-builder
Expand Down Expand Up @@ -272,7 +272,7 @@ then
echo "Compiling ${VERSION} Linux"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit garlicoin=${COMMIT} --url garlicoin=${url} ../garlicoin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs.ltc/ ../garlicoin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs.grlc/ ../garlicoin/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/garlicoin-*.tar.gz build/out/src/garlicoin-*.tar.gz ../garlicoin-binaries/${VERSION}
fi
# Windows
Expand All @@ -282,7 +282,7 @@ then
echo "Compiling ${VERSION} Windows"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit garlicoin=${COMMIT} --url garlicoin=${url} ../garlicoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs.ltc/ ../garlicoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs.grlc/ ../garlicoin/contrib/gitian-descriptors/gitian-win.yml
mv build/out/garlicoin-*-win-unsigned.tar.gz inputs/garlicoin-win-unsigned.tar.gz
mv build/out/garlicoin-*.zip build/out/garlicoin-*.exe ../garlicoin-binaries/${VERSION}
fi
Expand All @@ -293,7 +293,7 @@ then
echo "Compiling ${VERSION} Mac OSX"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit garlicoin=${COMMIT} --url garlicoin=${url} ../garlicoin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs.ltc/ ../garlicoin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs.grlc/ ../garlicoin/contrib/gitian-descriptors/gitian-osx.yml
mv build/out/garlicoin-*-osx-unsigned.tar.gz inputs/garlicoin-osx-unsigned.tar.gz
mv build/out/garlicoin-*.tar.gz build/out/garlicoin-*.dmg ../garlicoin-binaries/${VERSION}
fi
Expand Down Expand Up @@ -322,27 +322,27 @@ then
echo ""
echo "Verifying v${VERSION} Linux"
echo ""
./bin/gverify -v -d ../gitian.sigs.ltc/ -r ${VERSION}-linux ../garlicoin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gverify -v -d ../gitian.sigs.grlc/ -r ${VERSION}-linux ../garlicoin/contrib/gitian-descriptors/gitian-linux.yml
# Windows
echo ""
echo "Verifying v${VERSION} Windows"
echo ""
./bin/gverify -v -d ../gitian.sigs.ltc/ -r ${VERSION}-win-unsigned ../garlicoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gverify -v -d ../gitian.sigs.grlc/ -r ${VERSION}-win-unsigned ../garlicoin/contrib/gitian-descriptors/gitian-win.yml
# Mac OSX
echo ""
echo "Verifying v${VERSION} Mac OSX"
echo ""
./bin/gverify -v -d ../gitian.sigs.ltc/ -r ${VERSION}-osx-unsigned ../garlicoin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gverify -v -d ../gitian.sigs.grlc/ -r ${VERSION}-osx-unsigned ../garlicoin/contrib/gitian-descriptors/gitian-osx.yml
# Signed Windows
echo ""
echo "Verifying v${VERSION} Signed Windows"
echo ""
./bin/gverify -v -d ../gitian.sigs.ltc/ -r ${VERSION}-osx-signed ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs.grlc/ -r ${VERSION}-osx-signed ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
# Signed Mac OSX
echo ""
echo "Verifying v${VERSION} Signed Mac OSX"
echo ""
./bin/gverify -v -d ../gitian.sigs.ltc/ -r ${VERSION}-osx-signed ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs.grlc/ -r ${VERSION}-osx-signed ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
popd
fi

Expand All @@ -358,7 +358,7 @@ then
echo "Signing ${VERSION} Windows"
echo ""
./bin/gbuild -i --commit signature=${COMMIT} ../garlicoin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-signed --destination ../gitian.sigs.ltc/ ../garlicoin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-signed --destination ../gitian.sigs.grlc/ ../garlicoin/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/garlicoin-*win64-setup.exe ../garlicoin-binaries/${VERSION}
mv build/out/garlicoin-*win32-setup.exe ../garlicoin-binaries/${VERSION}
fi
Expand All @@ -369,7 +369,7 @@ then
echo "Signing ${VERSION} Mac OSX"
echo ""
./bin/gbuild -i --commit signature=${COMMIT} ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs.ltc/ ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs.grlc/ ../garlicoin/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/garlicoin-osx-signed.dmg ../garlicoin-binaries/${VERSION}/garlicoin-${VERSION}-osx.dmg
fi
popd
Expand Down

0 comments on commit e402c55

Please sign in to comment.