rust version change for epiccash building

This commit is contained in:
julian 2023-09-20 10:19:21 -06:00
parent eec0d2d7df
commit f98d2e405b
6 changed files with 68 additions and 2 deletions

View file

@ -1,5 +1,11 @@
#!/bin/bash
set -e
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1680
mkdir build
. ./config.sh
./install_ndk.sh
@ -10,3 +16,7 @@ mkdir build
wait
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720

View file

@ -1,8 +1,17 @@
#!/bin/bash
set -e
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1680
(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 ) &
wait
echo "Done building"
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720

View file

@ -1,5 +1,11 @@
#!/bin/bash
set -e
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1680
# for arm
# flutter-elinux clean
# flutter-elinux pub get
@ -12,3 +18,7 @@ mkdir -p build
wait
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720

View file

@ -1,8 +1,17 @@
#!/bin/bash
set -e
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1680
(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 ) &
wait
echo "Done building"
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720

19
scripts/rust_version.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
set_rust_to_1680() {
if rustup toolchain list | grep -q "1.68.0"; then
rustup default 1.68.0
else
echo "Rust version 1.68.0 is not installed. Please install it using 'rustup toolchain install 1.68.0'." >&2
exit 1
fi
}
set_rust_to_1720() {
if rustup toolchain list | grep -q "1.72.0"; then
rustup default 1.72.0
else
echo "Rust version 1.72.0 is not installed. Please install it using 'rustup toolchain install 1.72.0'." >&2
exit 1
fi
}

View file

@ -1,5 +1,11 @@
#!/bin/bash
set -e
# libepiccash requires old rust
source ../rust_version.sh
set_rust_to_1680
mkdir -p build
(cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_liblelantus/scripts/windows && ./build_all.sh ) &
@ -7,3 +13,6 @@ mkdir -p build
wait
echo "Done building"
# set rust (back) to a more recent stable release to allow stack wallet to build tor
set_rust_to_1720