2014-11-22 01:26:45 +01:00
|
|
|
---
|
2015-04-05 23:56:58 +02:00
|
|
|
name: "dash-dmg-signer"
|
2014-11-22 01:26:45 +01:00
|
|
|
suites:
|
2018-08-13 22:21:42 +02:00
|
|
|
- "bionic"
|
2014-11-22 01:26:45 +01:00
|
|
|
architectures:
|
|
|
|
- "amd64"
|
|
|
|
packages:
|
|
|
|
- "faketime"
|
2015-06-10 19:59:41 +02:00
|
|
|
remotes:
|
2016-02-02 16:28:56 +01:00
|
|
|
- "url": "https://github.com/dashpay/dash-detached-sigs.git"
|
2015-06-10 19:59:41 +02:00
|
|
|
"dir": "signature"
|
2014-11-22 01:26:45 +01:00
|
|
|
files:
|
2018-05-31 17:31:00 +02:00
|
|
|
- "dashcore-osx-unsigned.tar.gz"
|
2014-11-22 01:26:45 +01: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
|
|
|
|
echo '#!/bin/bash' > ${WRAP_DIR}/${prog}
|
|
|
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
2015-10-29 07:29:48 +01:00
|
|
|
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
2014-11-22 01:26:45 +01:00
|
|
|
echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog}
|
|
|
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
|
|
|
chmod +x ${WRAP_DIR}/${prog}
|
|
|
|
done
|
|
|
|
|
2018-05-31 17:31:00 +02:00
|
|
|
UNSIGNED=dashcore-osx-unsigned.tar.gz
|
|
|
|
SIGNED=dashcore-osx-signed.dmg
|
2014-11-22 01:26:45 +01:00
|
|
|
|
|
|
|
tar -xf ${UNSIGNED}
|
2016-02-04 13:41:58 +01:00
|
|
|
OSX_VOLNAME="$(cat osx_volname)"
|
2015-06-10 19:59:41 +02:00
|
|
|
./detached-sig-apply.sh ${UNSIGNED} signature/osx
|
2016-02-04 13:41:58 +01: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-22 01:26:45 +01:00
|
|
|
${WRAP_DIR}/dmg dmg uncompressed.dmg ${OUTDIR}/${SIGNED}
|