Skip to content

Commit d4565b6

Browse files
committed
Merge pull request #6269
c110575 gitian: Use the new bitcoin-detached-sigs git repo for OSX signatures (Cory Fields)
2 parents 5ebe7db + c110575 commit d4565b6

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

contrib/gitian-descriptors/gitian-osx-signer.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ packages:
88
- "libc6:i386"
99
- "faketime"
1010
reference_datetime: "2015-06-01 00:00:00"
11-
remotes: []
11+
remotes:
12+
- "url": "https://github.com/bitcoin/bitcoin-detached-sigs.git"
13+
"dir": "signature"
1214
files:
1315
- "bitcoin-osx-unsigned.tar.gz"
14-
- "signature.tar.gz"
1516
script: |
1617
WRAP_DIR=$HOME/wrapped
1718
mkdir -p ${WRAP_DIR}
@@ -32,6 +33,6 @@ script: |
3233
SIGNED=bitcoin-osx-signed.dmg
3334
3435
tar -xf ${UNSIGNED}
35-
./detached-sig-apply.sh ${UNSIGNED} signature.tar.gz
36+
./detached-sig-apply.sh ${UNSIGNED} signature/osx
3637
${WRAP_DIR}/genisoimage -no-cache-inodes -D -l -probe -V "Bitcoin-Core" -no-pad -r -apple -o uncompressed.dmg signed-app
3738
${WRAP_DIR}/dmg dmg uncompressed.dmg ${OUTDIR}/${SIGNED}

contrib/macdeploy/detached-sig-apply.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020

2121
rm -rf ${TEMPDIR} && mkdir -p ${TEMPDIR}
2222
tar -C ${TEMPDIR} -xf ${UNSIGNED}
23-
tar -C ${TEMPDIR} -xf ${SIGNATURE}
23+
cp -rf "${SIGNATURE}"/* ${TEMPDIR}
2424

2525
if [ -z "${PAGESTUFF}" ]; then
2626
PAGESTUFF=${TEMPDIR}/pagestuff

contrib/macdeploy/detached-sig-create.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CODESIGN=codesign
77
TEMPDIR=sign.temp
88
TEMPLIST=${TEMPDIR}/signatures.txt
99
OUT=signature.tar.gz
10+
OUTROOT=osx
1011

1112
if [ ! -n "$1" ]; then
1213
echo "usage: $0 <codesign args>"
@@ -23,7 +24,7 @@ grep -v CodeResources < "${TEMPLIST}" | while read i; do
2324
TARGETFILE="${BUNDLE}/`echo "${i}" | sed "s|.*${BUNDLE}/||"`"
2425
SIZE=`pagestuff "$i" -p | tail -2 | grep size | sed 's/[^0-9]*//g'`
2526
OFFSET=`pagestuff "$i" -p | tail -2 | grep offset | sed 's/[^0-9]*//g'`
26-
SIGNFILE="${TEMPDIR}/${TARGETFILE}.sign"
27+
SIGNFILE="${TEMPDIR}/${OUTROOT}/${TARGETFILE}.sign"
2728
DIRNAME="`dirname "${SIGNFILE}"`"
2829
mkdir -p "${DIRNAME}"
2930
echo "Adding detached signature for: ${TARGETFILE}. Size: ${SIZE}. Offset: ${OFFSET}"
@@ -32,7 +33,7 @@ done
3233

3334
grep CodeResources < "${TEMPLIST}" | while read i; do
3435
TARGETFILE="${BUNDLE}/`echo "${i}" | sed "s|.*${BUNDLE}/||"`"
35-
RESOURCE="${TEMPDIR}/${TARGETFILE}"
36+
RESOURCE="${TEMPDIR}/${OUTROOT}/${TARGETFILE}"
3637
DIRNAME="`dirname "${RESOURCE}"`"
3738
mkdir -p "${DIRNAME}"
3839
echo "Adding resource for: "${TARGETFILE}""

doc/release-process.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,13 @@ Commit your signature to gitian.sigs:
9292
popd
9393

9494
Wait for OSX detached signature:
95-
Once the OSX build has 3 matching signatures, Gavin will sign it with the apple App-Store key.
96-
He will then upload a detached signature to be combined with the unsigned app to create a signed binary.
95+
Once the OSX build has 3 matching signatures, it will be signed with the Apple App-Store key.
96+
A detached signature will then be committed to the bitcoin-detached-sigs repository, which can be combined with the unsigned app to create a signed binary.
9797

9898
Create the signed OSX binary:
9999

100100
pushd ./gitian-builder
101-
# Fetch the signature as instructed by Gavin
102-
cp signature.tar.gz inputs/
103-
./bin/gbuild -i ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
101+
./bin/gbuild -i --commit signature=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
104102
./bin/gsign --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
105103
mv build/out/bitcoin-osx-signed.dmg ../bitcoin-${VERSION}-osx.dmg
106104
popd

0 commit comments

Comments
 (0)