From a644e898bff870c36fa1546453fca587c6d78a9f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 21 Jan 2026 14:52:26 +0100 Subject: [PATCH 1/2] fix(scripts): add missing `"translations"` entry when adapting JSONs --- scripts/copy-firmware-jsons.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/copy-firmware-jsons.py b/scripts/copy-firmware-jsons.py index c4338ce..4e5d1ec 100644 --- a/scripts/copy-firmware-jsons.py +++ b/scripts/copy-firmware-jsons.py @@ -47,12 +47,12 @@ def copy_and_adapt_json(src: Path, dst: Path, new_url: Path) -> dict: # overwrite "url" since the binary has been renamed data["url"] = str(new_url) - if (translations := data.get("translations")) is not None: - # drop "signed/" subdirectory from translations' URLs - data["translations"] = { - key: re.sub("^firmware/signed/", "firmware/", value) - for key, value in translations.items() - } + translations = data.get("translations", {}) + # drop "signed/" subdirectory from translations' URLs + data["translations"] = { + key: re.sub("^firmware/signed/", "firmware/", value) + for key, value in translations.items() + } json_write(data=data, path=dst) return data From f5e5b1d80e8f2b55707bdcd6bbfe3a4c4d29beaf Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 21 Jan 2026 14:45:40 +0100 Subject: [PATCH 2/2] fix(scripts): use correct path for copying BTC-only T1B1 firmware binary --- scripts/copy-firmware-jsons.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/copy-firmware-jsons.py b/scripts/copy-firmware-jsons.py index 4e5d1ec..4f5d472 100644 --- a/scripts/copy-firmware-jsons.py +++ b/scripts/copy-firmware-jsons.py @@ -147,9 +147,10 @@ def main(version: str, release_repo: Path): universal_dst, ) btconly_dst = model_dst / f"trezor-{model_name}-{version}-bitcoinonly.bin" + btconly = "bitcoinonly" if model_name == "t1b1" else "btconly" copy_single_file( model_src, - f"firmware-{model_name.upper()}-btconly-{version}-*-signed.bin", + f"firmware-{model_name.upper()}-{btconly}-{version}-*-signed.bin", btconly_dst, )