2019-09-12 13:42:04 +00:00
|
|
|
#!/usr/bin/env bash
|
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
|
2019-10-22 08:54:18 +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
|
|
|
|
|
|
|
if [ -f /etc/NIXOS ]; then
|
|
|
|
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
|
|
|
|
fi
|