2019-09-12 13:42:04 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-06-12 15:32:07 +00:00
|
|
|
set -e
|
|
|
|
|
2022-03-22 11:12:11 +00:00
|
|
|
SITE="https://data.trezor.io/dev/firmware/releases/emulators/"
|
2019-08-16 13:29:21 +00:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
# download all emulators without index files, without directories and only if not present
|
2022-03-22 11:12:11 +00:00
|
|
|
wget -e robots=off \
|
|
|
|
--no-verbose \
|
|
|
|
--no-clobber \
|
|
|
|
--no-parent \
|
|
|
|
--no-directories \
|
|
|
|
--no-host-directories \
|
|
|
|
--recursive \
|
|
|
|
--reject "index.html*" \
|
2022-05-26 11:46:57 +00:00
|
|
|
--reject "-arm" \
|
2022-03-22 11:12:11 +00:00
|
|
|
-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
|
|
|
|
2022-03-28 22:08:48 +00:00
|
|
|
cd ..
|
2020-07-03 14:01:54 +00:00
|
|
|
# are we in Nix(OS)?
|
2023-03-17 20:26:03 +00:00
|
|
|
command -v nix-shell >/dev/null && nix-shell --run 'NIX_BINTOOLS=$NIX_BINTOOLS_FOR_TARGET autoPatchelf tests/emulators'
|