1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
trezor-firmware/tests/download_emulators.sh

16 lines
554 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
cd "$(dirname "$0")"
# download all emulators without index files, without directories and only if not present
wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
chmod u+x emulators/trezor-emu-*
if [ -f /etc/NIXOS ]; then
# for this to work you need to run ./download_emulators.sh outside the main nix shell
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
fi