|
2 | 2 |
|
3 | 3 | set -x -e |
4 | 4 |
|
5 | | -# ensure ios rust triples are there |
6 | | -rustup target add aarch64-apple-ios |
7 | | -rustup target add x86_64-apple-ios |
| 5 | +APP="${1:-stack_wallet}" |
8 | 6 |
|
9 | 7 | # ensure ios rust triples are there |
10 | 8 | rustup target add aarch64-apple-ios |
11 | 9 | rustup target add x86_64-apple-ios |
12 | 10 |
|
13 | | -# libepiccash requires old rust |
14 | 11 | source ../rust_version.sh |
15 | | -set_rust_version_for_libepiccash |
16 | | -(cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh ) |
17 | | -set_rust_version_for_libmwc |
18 | | -(cd ../../crypto_plugins/flutter_libmwc/scripts/ios/ && ./build_all.sh ) |
19 | | -# set rust (back) to a more recent stable release after building epiccash |
| 12 | + |
| 13 | +if [[ "$APP" = "stack_wallet" ]]; then |
| 14 | + set_rust_version_for_libepiccash |
| 15 | + (cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh ) |
| 16 | + set_rust_version_for_libmwc |
| 17 | + (cd ../../crypto_plugins/flutter_libmwc/scripts/ios/ && ./build_all.sh ) |
| 18 | +fi |
| 19 | + |
20 | 20 | set_rust_to_everything_else |
21 | 21 |
|
22 | | -(cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh ) |
| 22 | +if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then |
| 23 | + (cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh ) |
| 24 | +fi |
23 | 25 |
|
24 | 26 | wait |
25 | 27 | echo "Done building" |
26 | | - |
27 | | -# ensure ios rust triples are there |
28 | | -rustup target add aarch64-apple-ios |
29 | | -rustup target add x86_64-apple-ios |
0 commit comments