You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gitian-osx-signer.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. name: "starwels-dmg-signer"
  3. suites:
  4. - "trusty"
  5. architectures:
  6. - "amd64"
  7. packages:
  8. - "faketime"
  9. remotes:
  10. - "url": "https://github.com/starwels/starwels-detached-sigs.git"
  11. "dir": "signature"
  12. files:
  13. - "starwels-osx-unsigned.tar.gz"
  14. script: |
  15. WRAP_DIR=$HOME/wrapped
  16. mkdir -p ${WRAP_DIR}
  17. export PATH=`pwd`:$PATH
  18. FAKETIME_PROGS="dmg genisoimage"
  19. # Create global faketime wrappers
  20. for prog in ${FAKETIME_PROGS}; do
  21. echo '#!/bin/bash' > ${WRAP_DIR}/${prog}
  22. echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
  23. echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
  24. echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog}
  25. echo "\$REAL \$@" >> $WRAP_DIR/${prog}
  26. chmod +x ${WRAP_DIR}/${prog}
  27. done
  28. UNSIGNED=starwels-osx-unsigned.tar.gz
  29. SIGNED=starwels-osx-signed.dmg
  30. tar -xf ${UNSIGNED}
  31. OSX_VOLNAME="$(cat osx_volname)"
  32. ./detached-sig-apply.sh ${UNSIGNED} signature/osx
  33. ${WRAP_DIR}/genisoimage -no-cache-inodes -D -l -probe -V "${OSX_VOLNAME}" -no-pad -r -dir-mode 0755 -apple -o uncompressed.dmg signed-app
  34. ${WRAP_DIR}/dmg dmg uncompressed.dmg ${OUTDIR}/${SIGNED}