Bundling new firmware
-
Complete the firmware release process including firmware signing.
-
After the signing FW has been tested by QA in Test Signed environment.
-
Add new firmwares along with each firmware release JSON file from repository trezor/data to
packages/connect-common/files/firmware/*and remove the current ones -
Remove older binaries so they are not bundled in the desktop app any more, but always keep:
- the intermediary FW for T1B1 packages/connect-common/files/firmware/t1b1/trezor-inter-v{1 | 2 | 3}.bin
- and 2.1.1 for T2T1 packages/connect-common/files/firmware/t2t1/trezor-2.1.1.bin
-
Once new firmwares and releases JSON are added and old firmwares are removed you can proceed with running script
yarn tsx packages/connect-common/scripts/generate-firmware-index.tsthat will update the filepackages/connect-common/src/map-releases.ts. -
Update
packages/connect-common/files/firmware/release/releases.v1.jsonto be mapped to the latest FW. Make sure the sequence is higher than the one inhttps://github.com/trezor/trezor-suite-firmware-release/blob/main/releases/production/releases.v1.jsonif you want it to be used. -
If you have completed the points above you should have something like 19be9a7.
-
Test it locally by running
yarn suite:devand/oryarn suite:dev:desktop -
Freeze Suite. At this moment you are all good to Freeze and forward to QA. They should be able to test Suite in its wholeness along with the new firmwares.