2014-11-21 21:26:45 -03:00
|
|
|
---
|
|
|
|
name: "bitcoin-dmg-signer"
|
|
|
|
suites:
|
2018-05-05 00:17:23 -03:00
|
|
|
- "bionic"
|
2014-11-21 21:26:45 -03:00
|
|
|
architectures:
|
|
|
|
- "amd64"
|
|
|
|
packages:
|
|
|
|
- "faketime"
|
2015-06-10 14:59:41 -03:00
|
|
|
remotes:
|
2016-04-29 18:17:18 -03:00
|
|
|
- "url": "https://github.com/bitcoin-core/bitcoin-detached-sigs.git"
|
2015-06-10 14:59:41 -03:00
|
|
|
"dir": "signature"
|
2014-11-21 21:26:45 -03:00
|
|
|
files:
|
2014-12-30 04:36:58 -03:00
|
|
|
- "bitcoin-osx-unsigned.tar.gz"
|
2014-11-21 21:26:45 -03:00
|
|
|
script: |
|
|
|
|
WRAP_DIR=$HOME/wrapped
|
|
|
|
mkdir -p ${WRAP_DIR}
|
|
|
|
export PATH=`pwd`:$PATH
|
|
|
|
FAKETIME_PROGS="dmg genisoimage"
|
|
|
|
|
|
|
|
# Create global faketime wrappers
|
|
|
|
for prog in ${FAKETIME_PROGS}; do
|
2018-06-20 05:54:54 -04:00
|
|
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
2014-11-21 21:26:45 -03:00
|
|
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
2015-10-29 03:29:48 -03:00
|
|
|
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
2014-11-21 21:26:45 -03:00
|
|
|
echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog}
|
|
|
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
|
|
|
chmod +x ${WRAP_DIR}/${prog}
|
|
|
|
done
|
|
|
|
|
2014-12-30 04:36:58 -03:00
|
|
|
UNSIGNED=bitcoin-osx-unsigned.tar.gz
|
|
|
|
SIGNED=bitcoin-osx-signed.dmg
|
2014-11-21 21:26:45 -03:00
|
|
|
|
|
|
|
tar -xf ${UNSIGNED}
|
2015-12-10 18:49:27 -03:00
|
|
|
OSX_VOLNAME="$(cat osx_volname)"
|
2015-06-10 14:59:41 -03:00
|
|
|
./detached-sig-apply.sh ${UNSIGNED} signature/osx
|
2016-06-08 07:25:50 -04:00
|
|
|
${WRAP_DIR}/genisoimage -no-cache-inodes -D -l -probe -V "${OSX_VOLNAME}" -no-pad -r -dir-mode 0755 -apple -o uncompressed.dmg signed-app
|
2014-11-21 21:26:45 -03:00
|
|
|
${WRAP_DIR}/dmg dmg uncompressed.dmg ${OUTDIR}/${SIGNED}
|