mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
19 lines
352 B
Bash
Executable File
19 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
dirname $0
|
|
|
|
IMAGETAG=trezor-mcu-build
|
|
docker rmi $IMAGETAG || :
|
|
docker build -t $IMAGETAG .
|
|
|
|
CONTAINERTAG=trezor-mcu-build
|
|
docker rm $CONTAINERTAG || :
|
|
docker run --name $CONTAINERTAG $IMAGETAG true
|
|
|
|
docker cp $CONTAINERTAG:/trezor-mcu/firmware/trezor.bin .
|
|
|
|
echo "---------------------"
|
|
echo "Firmware fingerprint:"
|
|
|
|
sha256sum trezor.bin
|