mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
f12ca55d84
c966ff14c77870378847b9e6063b9671739ddc1f gitian: fixed SC2001 regex (willyk) Pull request description: Currently the gitian-win-signer.yml produces OUTFILE names without `-unsigned` stripped out This is due to regex having an`%` in front of it ``` $ INFILE="bitcoin-0.19.0-win64-setup-unsigned.exe" $ echo "${INFILE/%-unsigned}" bitcoin-0.19.0-win64-setup-unsigned.exe $ echo "${INFILE/-unsigned}" bitcoin-0.19.0-win64-setup.exe ``` Fixes #17361 ACKs for top commit: laanwj: ACK c966ff14c77870378847b9e6063b9671739ddc1f hebasto: ACK c966ff14c77870378847b9e6063b9671739ddc1f Tree-SHA512: 954547f9dfa4cab4def5f284d4837c21f0e6fed7454a04e83e6b1b7d3fd3f9661ea657047f0d8162f6591909d32ef2f72e801b2f3a44cbb1131ac344cb913a69
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
---
|
|
name: "dash-win-signer"
|
|
suites:
|
|
- "bionic"
|
|
architectures:
|
|
- "amd64"
|
|
packages:
|
|
- "libssl-dev" # do not merge bitcoin#13782, see https://github.com/dashpay/dash/pull/3894
|
|
- "autoconf"
|
|
- "automake"
|
|
- "libtool"
|
|
- "pkg-config"
|
|
remotes:
|
|
- "url": "https://github.com/dashpay/dash-detached-sigs.git"
|
|
"dir": "signature"
|
|
files:
|
|
- "osslsigncode-2.0.tar.gz"
|
|
- "dashcore-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 dashcore-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
|