2014-11-22 01:26:45 +01:00
|
|
|
#!/bin/sh
|
2016-09-20 09:56:14 +02:00
|
|
|
# Copyright (c) 2014-2015 The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-06-18 13:12:07 +02:00
|
|
|
export LC_ALL=C
|
2014-11-22 01:26:45 +01:00
|
|
|
set -e
|
|
|
|
|
2015-05-15 23:54:20 +02:00
|
|
|
UNSIGNED="$1"
|
|
|
|
SIGNATURE="$2"
|
2014-11-22 01:26:45 +01:00
|
|
|
ROOTDIR=dist
|
|
|
|
OUTDIR=signed-app
|
2021-01-18 22:04:23 +01:00
|
|
|
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
|
|
|
|
|
2021-01-18 22:04:23 +01:00
|
|
|
${SIGNAPPLE} apply ${UNSIGNED} ${SIGNATURE}
|
|
|
|
mv ${ROOTDIR} ${OUTDIR}
|
2014-11-22 01:26:45 +01:00
|
|
|
echo "Signed: ${OUTDIR}"
|