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
This commit is contained in:
cyan
2025-09-05 23:07:26 +03:00
committed by GitHub
parent f0ca065a48
commit 2dc95b2bf0
42 changed files with 294 additions and 192 deletions
+2
View File
@@ -7,6 +7,8 @@ fi
DIR=$(dirname "$0")
$DIR/build_torch.sh
case $APP_ANDROID_TYPE in
"monero.com") $DIR/build_monero_all.sh ;;
"cakewallet") $DIR/build_monero_all.sh
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
set -x -e
cd "$(dirname "$0")"
../prepare_torch.sh
cd ../torch_dart
./build.sh aarch64-linux-android armv7a-linux-androideabi x86_64-linux-android
+2
View File
@@ -7,6 +7,8 @@ fi
DIR=$(dirname "$0")
$DIR/build_torch.sh
case $APP_IOS_TYPE in
"monero.com") $DIR/build_monero_all.sh ;;
"cakewallet") $DIR/build_monero_all.sh && $DIR/build_mwebd.sh && $DIR/build_decred.sh ;;
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -x -e
cd "$(dirname "$0")"
../prepare_torch.sh
cd ../torch_dart
# Need to build all platforms to get .xcframework
./build.sh aarch64-apple-ios-simulator aarch64-apple-ios aarch64-apple-darwin x86_64-apple-darwin
+3 -1
View File
@@ -1,3 +1,5 @@
#!/bin/sh
./build_monero_all.sh universal && $DIR/build_decred.sh
./build_torch.sh
./build_monero_all.sh universal && ./build_decred.sh
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
set -x -e
cd "$(dirname "$0")"
exec bash ../ios/build_torch.sh
+1
View File
@@ -6,6 +6,7 @@ cd "$(dirname "$0")"
if [[ ! -d "monero_c/.git" ]];
then
rm -rf monero_c
git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
cd monero_c
git checkout b576312e4d466569cd03482b61c597b39a9f4dc3
+28
View File
@@ -0,0 +1,28 @@
#!/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