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-win-signer.yml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. name: "starwels-win-signer"
  3. suites:
  4. - "trusty"
  5. architectures:
  6. - "amd64"
  7. packages:
  8. - "libssl-dev"
  9. - "autoconf"
  10. remotes:
  11. - "url": "https://github.com/starwels/starwels-detached-sigs.git"
  12. "dir": "signature"
  13. files:
  14. - "osslsigncode-1.7.1.tar.gz"
  15. - "osslsigncode-Backports-to-1.7.1.patch"
  16. - "starwels-win-unsigned.tar.gz"
  17. script: |
  18. BUILD_DIR=`pwd`
  19. SIGDIR=${BUILD_DIR}/signature/win
  20. UNSIGNED_DIR=${BUILD_DIR}/unsigned
  21. echo "f9a8cdb38b9c309326764ebc937cba1523a3a751a7ab05df3ecc99d18ae466c9 osslsigncode-1.7.1.tar.gz" | sha256sum -c
  22. echo "a8c4e9cafba922f89de0df1f2152e7be286aba73f78505169bc351a7938dd911 osslsigncode-Backports-to-1.7.1.patch" | sha256sum -c
  23. mkdir -p ${UNSIGNED_DIR}
  24. tar -C ${UNSIGNED_DIR} -xf starwels-win-unsigned.tar.gz
  25. tar xf osslsigncode-1.7.1.tar.gz
  26. cd osslsigncode-1.7.1
  27. patch -p1 < ${BUILD_DIR}/osslsigncode-Backports-to-1.7.1.patch
  28. ./configure --without-gsf --without-curl --disable-dependency-tracking
  29. make
  30. find ${UNSIGNED_DIR} -name "*-unsigned.exe" | while read i; do
  31. INFILE="`basename "${i}"`"
  32. OUTFILE="`echo "${INFILE}" | sed s/-unsigned//`"
  33. ./osslsigncode attach-signature -in "${i}" -out "${OUTDIR}/${OUTFILE}" -sigin "${SIGDIR}/${INFILE}.pem"
  34. done