mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
1f59885d27
17f81e9648
script: Enable SC2001 rule for Gitian scripts (Hennadii Stepanov)61bb21b418
script: Enable SC2155 rule for Gitian scripts (Hennadii Stepanov)577682d9e8
script: Enable SC2006 rule for Gitian scripts (Hennadii Stepanov)14aded46df
script: Lint Gitian descriptors with ShellCheck (Hennadii Stepanov) Pull request description: This PR extracts shell scripts from Gitian descriptors (`contrib/gitian-descriptors/`) and checks for ShellCheck warnings as any other one. Some non-controversial warnings are fixed. ACKs for top commit: practicalswift: ACK17f81e9648
-- diff looks correct Tree-SHA512: bdfa3d35bbb65ff634c90835d75c3df63e958b558599771d21366724f5cf64da83a68957d926e926a99c3704b9529e96a17697dc8d9ff3adf7154d9cb1999a8d
41 lines
1 KiB
YAML
41 lines
1 KiB
YAML
---
|
|
name: "bitcoin-win-signer"
|
|
distro: "ubuntu"
|
|
suites:
|
|
- "bionic"
|
|
architectures:
|
|
- "linux64"
|
|
packages:
|
|
- "libssl-dev"
|
|
- "autoconf"
|
|
- "libtool"
|
|
- "pkg-config"
|
|
remotes:
|
|
- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git"
|
|
"dir": "signature"
|
|
files:
|
|
- "osslsigncode-2.0.tar.gz"
|
|
- "bitcoin-win-unsigned.tar.gz"
|
|
script: |
|
|
set -e -o pipefail
|
|
|
|
BUILD_DIR="$PWD"
|
|
SIGDIR=${BUILD_DIR}/signature/win
|
|
UNSIGNED_DIR=${BUILD_DIR}/unsigned
|
|
|
|
echo "5a60e0a4b3e0b4d655317b2f12a810211c50242138322b16e7e01c6fbb89d92f osslsigncode-2.0.tar.gz" | sha256sum -c
|
|
|
|
mkdir -p ${UNSIGNED_DIR}
|
|
tar -C ${UNSIGNED_DIR} -xf bitcoin-win-unsigned.tar.gz
|
|
|
|
tar xf osslsigncode-2.0.tar.gz
|
|
cd osslsigncode-2.0
|
|
|
|
./autogen.sh
|
|
./configure --without-gsf --without-curl --disable-dependency-tracking
|
|
make
|
|
find ${UNSIGNED_DIR} -name "*-unsigned.exe" | while read i; do
|
|
INFILE="$(basename "${i}")"
|
|
OUTFILE="${INFILE/%-unsigned}"
|
|
./osslsigncode attach-signature -in "${i}" -out "${OUTDIR}/${OUTFILE}" -sigin "${SIGDIR}/${INFILE}.pem"
|
|
done
|