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