2015-06-19 00:17:36 +02:00
|
|
|
---
|
|
|
|
name: "bitcoin-win-signer"
|
2019-03-14 19:16:50 +01:00
|
|
|
distro: "ubuntu"
|
2015-06-19 00:17:36 +02:00
|
|
|
suites:
|
2018-05-05 05:17:23 +02:00
|
|
|
- "bionic"
|
2015-06-19 00:17:36 +02:00
|
|
|
architectures:
|
2019-11-14 23:10:23 +01:00
|
|
|
- "amd64"
|
2015-06-19 00:17:36 +02:00
|
|
|
packages:
|
2019-08-20 08:33:39 +02:00
|
|
|
- "libssl-dev"
|
2015-06-19 00:17:36 +02:00
|
|
|
- "autoconf"
|
2020-04-11 20:15:05 +02:00
|
|
|
- "automake"
|
2019-08-20 08:33:39 +02:00
|
|
|
- "libtool"
|
|
|
|
- "pkg-config"
|
2015-06-19 00:17:36 +02:00
|
|
|
remotes:
|
2016-04-29 23:17:18 +02:00
|
|
|
- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git"
|
2015-06-19 00:17:36 +02:00
|
|
|
"dir": "signature"
|
|
|
|
files:
|
2019-08-20 08:33:39 +02:00
|
|
|
- "osslsigncode-2.0.tar.gz"
|
2015-06-29 21:02:37 +02:00
|
|
|
- "bitcoin-win-unsigned.tar.gz"
|
2015-06-19 00:17:36 +02:00
|
|
|
script: |
|
2019-03-06 18:22:29 +01:00
|
|
|
set -e -o pipefail
|
|
|
|
|
2019-11-03 20:57:11 +01:00
|
|
|
BUILD_DIR="$PWD"
|
2015-06-19 00:17:36 +02:00
|
|
|
SIGDIR=${BUILD_DIR}/signature/win
|
2015-06-29 21:02:37 +02:00
|
|
|
UNSIGNED_DIR=${BUILD_DIR}/unsigned
|
2015-06-19 00:17:36 +02:00
|
|
|
|
2019-08-20 08:33:39 +02:00
|
|
|
echo "5a60e0a4b3e0b4d655317b2f12a810211c50242138322b16e7e01c6fbb89d92f osslsigncode-2.0.tar.gz" | sha256sum -c
|
2015-06-19 00:17:36 +02:00
|
|
|
|
2015-06-29 21:02:37 +02:00
|
|
|
mkdir -p ${UNSIGNED_DIR}
|
|
|
|
tar -C ${UNSIGNED_DIR} -xf bitcoin-win-unsigned.tar.gz
|
|
|
|
|
2019-08-20 08:33:39 +02:00
|
|
|
tar xf osslsigncode-2.0.tar.gz
|
|
|
|
cd osslsigncode-2.0
|
2015-06-19 00:17:36 +02:00
|
|
|
|
2019-08-20 08:33:39 +02:00
|
|
|
./autogen.sh
|
2015-06-19 00:17:36 +02:00
|
|
|
./configure --without-gsf --without-curl --disable-dependency-tracking
|
|
|
|
make
|
2015-06-29 21:02:37 +02:00
|
|
|
find ${UNSIGNED_DIR} -name "*-unsigned.exe" | while read i; do
|
2019-11-03 20:39:19 +01:00
|
|
|
INFILE="$(basename "${i}")"
|
2019-12-05 22:00:34 +01:00
|
|
|
OUTFILE="${INFILE/-unsigned}"
|
2015-06-29 21:02:37 +02:00
|
|
|
./osslsigncode attach-signature -in "${i}" -out "${OUTDIR}/${OUTFILE}" -sigin "${SIGDIR}/${INFILE}.pem"
|
|
|
|
done
|