dogecoin/contrib/macdeploy/detached-sig-apply.sh

28 lines
575 B
Bash
Raw Normal View History

2014-11-22 01:26:45 +01:00
#!/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=C
2014-11-22 01:26:45 +01:00
set -e
UNSIGNED="$1"
SIGNATURE="$2"
2014-11-22 01:26:45 +01:00
ROOTDIR=dist
OUTDIR=signed-app
SIGNAPPLE=signapple
2014-11-22 01:26:45 +01:00
if [ -z "$UNSIGNED" ]; then
echo "usage: $0 <unsigned app> <signature>"
exit 1
fi
if [ -z "$SIGNATURE" ]; then
echo "usage: $0 <unsigned app> <signature>"
exit 1
fi
${SIGNAPPLE} apply ${UNSIGNED} ${SIGNATURE}
mv ${ROOTDIR} ${OUTDIR}
2014-11-22 01:26:45 +01:00
echo "Signed: ${OUTDIR}"