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

38 lines
1.2 KiB
YAML
Raw Normal View History

2014-11-22 01:26:45 +01:00
---
2024-02-05 23:00:22 +01:00
name: "neobytes-dmg-signer"
2014-11-22 01:26:45 +01:00
suites:
2015-10-29 07:29:48 +01:00
- "trusty"
2014-11-22 01:26:45 +01:00
architectures:
- "amd64"
packages:
- "faketime"
reference_datetime: "2017-01-01 00:00:00"
remotes:
2024-02-05 23:00:22 +01:00
- "url": "https://github.com/neobytes-project/neobytes-detached-sigs.git"
"dir": "signature"
2014-11-22 01:26:45 +01:00
files:
2024-02-05 23:00:22 +01:00
- "neobytes-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
2024-02-05 23:00:22 +01:00
UNSIGNED=neobytes-osx-unsigned.tar.gz
SIGNED=neobytes-osx-signed.dmg
2014-11-22 01:26:45 +01:00
tar -xf ${UNSIGNED}
./detached-sig-apply.sh ${UNSIGNED} signature/osx
2024-12-16 19:40:22 +01:00
${WRAP_DIR}/genisoimage -no-cache-inodes -D -l -probe -V "Neobytes-Core" -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}