mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
28 lines
679 B
Bash
Executable File
28 lines
679 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/v1.0.17/torch_dart-v1.0.17.tar.gz
|
|
|
|
HASH=85130c85ad80f4596896f5fa4dc1a160cf0f0487
|
|
|
|
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 |