We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f96353b commit 76a3084Copy full SHA for 76a3084
release/scripts/v1applysig.sh
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+if [ -z "${1}" -o -z "${2}" ]
6
+then
7
+ echo "Usage: ${0} <version/dir> <key_file>"
8
+ exit 1
9
+fi
10
+VER_DIR="${1}"
11
+KEY=$(realpath ${2})
12
13
+[ -d staging/${VER_DIR} ] || false # Version directory must exist
14
+[ -f ${KEY} ] || false # Private key file must exist
15
16
+VARIANTS="jade jade1.1"
17
18
+for variant in ${VARIANTS}; do
19
+ for build_dir in staging/${VER_DIR}/${variant}/build_*prod; do
20
+ pushd ${build_dir}
21
+ espsecure.py sign_data --version 2 --keyfile ${KEY} --output bootloader/bootloader_signed.bin bootloader/bootloader.bin
22
+ espsecure.py sign_data --version 2 --keyfile ${KEY} --output jade_signed.bin jade.bin
23
+ popd
24
+ done
25
+done
0 commit comments