Files
hash-wallet/scripts/prepare_torch.sh
T
cyanandGitHub 2dc95b2bf0 feat: use better embedded Tor (#2453)
* feat: use better embedded Tor

* update docs [skip ci]

* fix: update torch properly add minimum os version for iOS

* fix: use of invalid thread api on iOS

* fix: disable use of lzma and zstd system libraries

* fix: update torch_dart to work on linux
2025-09-05 23:07:26 +03:00

28 lines
767 B
Bash
Executable File

#!/bin/bash
set -x -e
cd "$(dirname "$0")"
# IMPORTANT: Make sure to update action 'Build Torch` in
# - .github/workflows/pr_test_build_android.yml
# - .github/workflows/pr_test_build_linux.yml
# https://github.com/MrCyjaneK/torch_dart/releases/download/4f987d4-1-ge071fcf-1-gc282f09-1-g4c290aa-1-gabdf653/torch_dart-4f987d4-1-ge071fcf-1-gc282f09-1-g4c290aa-1-gabdf653.tar.gz
HASH=abdf653fc15b576f2a67597a1f9618345a297f45
if [[ ! -d "torch_dart/.git" ]];
then
rm -rf torch_dart
git clone https://github.com/mrcyjanek/torch_dart
cd torch_dart
else
cd torch_dart
git fetch -a
fi
git reset --hard
git checkout $HASH
git reset --hard
# recommended to uncomment during development
# sed -i.bak 's/go run . -cleanup/#go run . -cleanup/g' build.sh