mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 08:58:14 +00:00
a0aa414aa0
[no changelog]
25 lines
612 B
Bash
Executable File
25 lines
612 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
SITE="https://data.trezor.io/dev/firmware/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 \
|
|
--no-directories \
|
|
--no-host-directories \
|
|
--recursive \
|
|
--reject "index.html*" \
|
|
--reject "-arm" \
|
|
-P emulators/ \
|
|
$SITE
|
|
|
|
chmod u+x emulators/trezor-emu-*
|
|
|
|
cd ..
|
|
# are we in Nix(OS)?
|
|
command -v nix-shell >/dev/null && nix-shell --run 'NIX_BINTOOLS=$NIX_BINTOOLS_FOR_TARGET autoPatchelf tests/emulators'
|