1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 03:59:56 +00:00
trezor-firmware/tests/download_emulators.sh

14 lines
526 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
2020-08-27 18:01:23 +00:00
SITE="https://firmware.corp.sldev.cz/releases/emulators/"
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-*
# are we in Nix(OS)?
command -v nix-shell >/dev/null && nix-shell -p autoPatchelfHook SDL2 SDL2_image --run "autoPatchelf emulators/trezor-emu-*"