build: update release script directories
What changed, and why it matters
This commit is a routine build-script maintenance change. It updates three release helper scripts so they use different firmware output directory names for two hardware variants (jade2.0 and jade2.0c). There is no user-facing security change, no vulnerability fix, and no change to cryptographic signing logic.
No security action required. Treat as normal build/release maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch moves the BLEDIR and NORADIODIR variable assignments inside the per-hardware loop and selects build_v2_ for jade2.0 and build_v2c_ for jade2.0c. The signing commands, key paths, verification options, and file naming conventions remain unchanged. This is purely a directory-path correction for the release pipeline.
Changed components
release/scripts/v2applysigs.shrelease/scripts/v2jadesign.shrelease/scripts/v2sign.shInspect captured patch +21 / −9
diff --git a/release/scripts/v2applysigs.sh b/release/scripts/v2applysigs.sh
index fba948f..bcdcc9a 100755
--- a/release/scripts/v2applysigs.sh
+++ b/release/scripts/v2applysigs.sh
@@ -13,9 +13,6 @@ SIGNER_KEY_LABELS="$@"
WORKING_DIR_PREFIX="staging/${VER_DIR}"
HWDIRS="jade2.0 jade2.0c"
-BLEDIR="build_v2_prod"
-NORADIODIR="build_v2_noradio_prod"
-
FILE_PREFIX="v2_${VER_DIR}"
FW_SUFFIX="bin"
SIGNED_SUFFIX="signed.bin"
@@ -32,6 +29,13 @@ done
for hwdir in ${HWDIRS}; do
WORKING_DIR="${WORKING_DIR_PREFIX}/${hwdir}"
+ if [ "$hwdir" == "jade2.0" ]; then
+ BLEDIR="build_v2_prod"
+ NORADIODIR="build_v2_noradio_prod"
+ else
+ BLEDIR="build_v2c_prod"
+ NORADIODIR="build_v2c_noradio_prod"
+ fi
pushd "${WORKING_DIR}"
diff --git a/release/scripts/v2jadesign.sh b/release/scripts/v2jadesign.sh
index 5aba0a5..5de27e4 100755
--- a/release/scripts/v2jadesign.sh
+++ b/release/scripts/v2jadesign.sh
@@ -54,9 +54,6 @@ INDEX=1784767589
# Relative paths from where it will be referenced in fw dir
PUBKEY="../../../scripts/${KEY_LABEL}.pub"
-BLEDIR="build_v2_prod"
-NORADIODIR="build_v2_noradio_prod"
-
FILE_PREFIX="v2_${VER_DIR}"
SIG_SUFFIX="${KEY_LABEL}.sig"
@@ -66,6 +63,13 @@ JADE_SIGN_CMD="python ../../../../jade_bip85_rsa_sign.py ${JADE_SERIAL_ARG} ${LO
for hwdir in ${HWDIRS}; do
WORKING_DIR="${WORKING_DIR_PREFIX}/${hwdir}"
+ if [ "$hwdir" == "jade2.0" ]; then
+ BLEDIR="build_v2_prod"
+ NORADIODIR="build_v2_noradio_prod"
+ else
+ BLEDIR="build_v2c_prod"
+ NORADIODIR="build_v2c_noradio_prod"
+ fi
pushd "${WORKING_DIR}"
diff --git a/release/scripts/v2sign.sh b/release/scripts/v2sign.sh
index 871760a..8325941 100755
--- a/release/scripts/v2sign.sh
+++ b/release/scripts/v2sign.sh
@@ -17,9 +17,6 @@ HWDIRS="jade2.0 jade2.0c"
KEY="../../../scripts/${KEY_LABEL}.pem"
PUBKEY="../../../scripts/${KEY_LABEL}.pub"
-BLEDIR="build_v2_prod"
-NORADIODIR="build_v2_noradio_prod"
-
FILE_PREFIX="v2_${VER_DIR}"
SIG_SUFFIX="${KEY_LABEL}.sig"
@@ -29,6 +26,13 @@ VERIFY_OPTS="-pubin -inkey ${PUBKEY} -pkeyopt digest:sha256 -pkeyopt rsa_padding
for hwdir in ${HWDIRS}; do
WORKING_DIR="${WORKING_DIR_PREFIX}/${hwdir}"
+ if [ "$hwdir" == "jade2.0" ]; then
+ BLEDIR="build_v2_prod"
+ NORADIODIR="build_v2_noradio_prod"
+ else
+ BLEDIR="build_v2c_prod"
+ NORADIODIR="build_v2c_noradio_prod"
+ fi
pushd "${WORKING_DIR}"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.