git / moonbite-core / contrib/macdeploy/detached-sig-apply.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 -eUNSIGNED="$1"SIGNATURE="$2"ROOTDIR=distOUTDIR=signed-appSIGNAPPLE=signappleif [ -z "$UNSIGNED" ]; then  echo "usage: $0 <unsigned app> <signature>"  exit 1fiif [ -z "$SIGNATURE" ]; then  echo "usage: $0 <unsigned app> <signature>"  exit 1fi${SIGNAPPLE} apply ${UNSIGNED} ${SIGNATURE}mv ${ROOTDIR} ${OUTDIR}echo "Signed: ${OUTDIR}"