2019-09-12 13:42:04 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-06-12 15:32:07 +00:00
|
|
|
set -e
|
|
|
|
|
2019-08-16 13:29:21 +00:00
|
|
|
SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
# download all emulators without index files, without directories and only if not present
|
2020-06-27 14:37:35 +00:00
|
|
|
wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
|
2019-08-16 13:29:21 +00:00
|
|
|
|
|
|
|
chmod u+x emulators/trezor-emu-*
|
2019-10-22 08:54:18 +00:00
|
|
|
|
2020-07-03 14:01:54 +00:00
|
|
|
# are we in Nix(OS)?
|
|
|
|
command -v nix-shell >/dev/null && nix-shell -p autoPatchelfHook SDL2 SDL2_image --run "autoPatchelf emulators/trezor-emu-*"
|