git / moonbite-core / contrib/macdeploy/detached-sig-create.sh · raw
#!/bin/sh# Copyright (c) 2014-2019 The Bitcoin Core developers# Distributed under the MIT software license, see the accompanying# file COPYING or http://www.opensource.org/licenses/mit-license.php.export LC_ALL=Cset -eROOTDIR=distBUNDLE="${ROOTDIR}/Litecoin-Qt.app"SIGNAPPLE=signappleTEMPDIR=sign.tempOUT=signature-osx.tar.gzOUTROOT=osx/distif [ -z "$1" ]; then echo "usage: $0 <signapple args>" echo "example: $0 <path to key>" exit 1firm -rf ${TEMPDIR}mkdir -p ${TEMPDIR}${SIGNAPPLE} sign --hardened-runtime -f --detach "${TEMPDIR}/${OUTROOT}" "$@" "${BUNDLE}"tar -C "${TEMPDIR}" -czf "${OUT}" .rm -rf "${TEMPDIR}"echo "Created ${OUT}"