2015-06-18 15:17:36 -07:00
|
|
|
---
|
|
|
|
name: "bitcoin-win-signer"
|
|
|
|
suites:
|
2018-05-04 20:17:23 -07:00
|
|
|
- "bionic"
|
2015-06-18 15:17:36 -07:00
|
|
|
architectures:
|
|
|
|
- "amd64"
|
|
|
|
packages:
|
2018-07-27 08:27:28 -07:00
|
|
|
# Once osslsigncode supports openssl 1.1, we can change this back to libssl-dev
|
|
|
|
- "libssl1.0-dev"
|
2015-06-18 15:17:36 -07:00
|
|
|
- "autoconf"
|
|
|
|
remotes:
|
2016-04-29 14:17:18 -07:00
|
|
|
- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git"
|
2015-06-18 15:17:36 -07:00
|
|
|
"dir": "signature"
|
|
|
|
files:
|
|
|
|
- "osslsigncode-1.7.1.tar.gz"
|
|
|
|
- "osslsigncode-Backports-to-1.7.1.patch"
|
2015-06-29 12:02:37 -07:00
|
|
|
- "bitcoin-win-unsigned.tar.gz"
|
2015-06-18 15:17:36 -07:00
|
|
|
script: |
|
|
|
|
BUILD_DIR=`pwd`
|
|
|
|
SIGDIR=${BUILD_DIR}/signature/win
|
2015-06-29 12:02:37 -07:00
|
|
|
UNSIGNED_DIR=${BUILD_DIR}/unsigned
|
2015-06-18 15:17:36 -07:00
|
|
|
|
|
|
|
echo "f9a8cdb38b9c309326764ebc937cba1523a3a751a7ab05df3ecc99d18ae466c9 osslsigncode-1.7.1.tar.gz" | sha256sum -c
|
|
|
|
echo "a8c4e9cafba922f89de0df1f2152e7be286aba73f78505169bc351a7938dd911 osslsigncode-Backports-to-1.7.1.patch" | sha256sum -c
|
|
|
|
|
2015-06-29 12:02:37 -07:00
|
|
|
mkdir -p ${UNSIGNED_DIR}
|
|
|
|
tar -C ${UNSIGNED_DIR} -xf bitcoin-win-unsigned.tar.gz
|
|
|
|
|
2015-06-18 15:17:36 -07:00
|
|
|
tar xf osslsigncode-1.7.1.tar.gz
|
|
|
|
cd osslsigncode-1.7.1
|
|
|
|
patch -p1 < ${BUILD_DIR}/osslsigncode-Backports-to-1.7.1.patch
|
|
|
|
|
|
|
|
./configure --without-gsf --without-curl --disable-dependency-tracking
|
|
|
|
make
|
2015-06-29 12:02:37 -07:00
|
|
|
find ${UNSIGNED_DIR} -name "*-unsigned.exe" | while read i; do
|
|
|
|
INFILE="`basename "${i}"`"
|
|
|
|
OUTFILE="`echo "${INFILE}" | sed s/-unsigned//`"
|
|
|
|
./osslsigncode attach-signature -in "${i}" -out "${OUTDIR}/${OUTFILE}" -sigin "${SIGDIR}/${INFILE}.pem"
|
|
|
|
done
|