build_all_duo.sh scripts

This commit is contained in:
sneurlax 2024-05-15 17:51:21 -05:00
parent 966bc81662
commit cddfa6b37e
8 changed files with 137 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd android
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1671
mkdir -p build
. ./config.sh
./install_ndk.sh
PLUGINS_DIR=../../crypto_plugins
(cd "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android && ./build_all.sh ) &
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./build_all.sh ) &
(cd "${PLUGINS_DIR}"/flutter_libmonero/scripts/android/ && ./build_all.sh ) &&
set_rust_to_1720 &&
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./build_all.sh ) &
wait
echo "Done building"

33
scripts/ios/build_all_duo.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/bash
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd ios
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1671
# ensure ios rust triples are there
rustup target add aarch64-apple-ios
rustup target add x86_64-apple-ios
# ensure ios rust triples are there
rustup target add aarch64-apple-ios
rustup target add x86_64-apple-ios
(cd ../../crypto_plugins/flutter_liblelantus/scripts/ios && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/ios/ && ./build_all.sh ) &&
set_rust_to_1720 &&
(cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh ) &
wait
echo "Done building"
# ensure ios rust triples are there
rustup target add aarch64-apple-ios
rustup target add x86_64-apple-ios

0
scripts/ios/configure_duo.sh Normal file → Executable file
View file

29
scripts/linux/build_all_duo.sh Executable file
View file

@ -0,0 +1,29 @@
#!/bin/bash
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd linux
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1671
# for arm
# flutter-elinux clean
# flutter-elinux pub get
# flutter-elinux build linux --dart-define="IS_ARM=true"
mkdir -p build
./build_secure_storage_deps.sh &
(cd ../../crypto_plugins/flutter_liblelantus/scripts/linux && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/linux && ./build_monero_all.sh && ./build_sharedfile.sh )
set_rust_to_1720
(cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh ) &
./build_secp256k1.sh
wait
echo "Done building"

24
scripts/macos/build_all_duo.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd macos
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1671
(cd ../../crypto_plugins/flutter_liblelantus/scripts/macos && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libepiccash/scripts/macos && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/macos/ && ./build_all.sh ) &&
set_rust_to_1720 &&
(cd ../../crypto_plugins/frostdart/scripts/macos && ./build_all.sh ) &
wait
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720

0
scripts/macos/configure_duo.sh Normal file → Executable file
View file

View file

@ -0,0 +1,24 @@
#!/bin/bash
set -e
./configure_duo.sh
cd ..
./configure_duo.sh
cd windows
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1671
mkdir -p build
(cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_liblelantus/scripts/windows && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/windows && ./build_all.sh)
set_rust_to_1720
(cd ../../crypto_plugins/frostdart/scripts/windows && ./build_all.sh ) &
./build_secp256k1_wsl.sh
wait
echo "Done building"

0
scripts/windows/configure_duo.sh Normal file → Executable file
View file