Skip to content

Commit 9b3f04f

Browse files
Merge pull request #1386 from cypherstack/fix/stack-duo-ios-build
bump frostdart, parameterize download_all.sh
2 parents 51db6c7 + 744485c commit 9b3f04f

7 files changed

Lines changed: 47 additions & 31 deletions

File tree

scripts/android/download_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22

33
set -x -e
44

5+
APP="${1:-stack_wallet}"
6+
57
mkdir -p build
68
. ./config.sh
79

810
PLUGINS_DIR=../../crypto_plugins
911

10-
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./download.sh)
11-
12-
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/android && ./download.sh)
12+
if [[ "$APP" = "stack_wallet" ]]; then
13+
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./download.sh)
14+
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/android && ./download.sh)
15+
fi
1316

14-
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./download.sh)
17+
if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
18+
(cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./download.sh)
19+
fi
1520

1621
wait
1722
echo "Done"

scripts/build_app.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,7 @@ fi
117117

118118
if [ "$BUILD_CRYPTO_PLUGINS" -eq 0 ]; then
119119
if [ "$DOWNLOAD_CRYPTO_PLUGINS" -eq 1 ]; then
120-
if [[ "$APP_NAMED_ID" = "stack_wallet" ]]; then
121-
./download_all.sh
122-
elif [[ "$APP_NAMED_ID" = "stack_duo" ]]; then
123-
./build_all_duo.sh
124-
elif [[ "$APP_NAMED_ID" = "campfire" ]]; then
125-
./build_all_campfire.sh
126-
else
127-
echo "Invalid app id: ${APP_NAMED_ID}"
128-
exit 1
129-
fi
120+
./download_all.sh "$APP_NAMED_ID"
130121
else
131122
if [[ "$APP_NAMED_ID" = "stack_wallet" ]]; then
132123
./build_all.sh

scripts/ios/download_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22

33
set -x -e
44

5+
APP="${1:-stack_wallet}"
6+
57
mkdir -p build
68

79
PLUGINS_DIR=../../crypto_plugins
810

9-
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/ios && ./download.sh)
10-
11-
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/ios && ./download.sh)
11+
if [[ "$APP" = "stack_wallet" ]]; then
12+
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/ios && ./download.sh)
13+
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/ios && ./download.sh)
14+
fi
1215

13-
(cd "${PLUGINS_DIR}"/frostdart/scripts/ios && ./download.sh)
16+
if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
17+
(cd "${PLUGINS_DIR}"/frostdart/scripts/ios && ./download.sh)
18+
fi
1419

1520
wait
1621
echo "Done"

scripts/linux/download_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
set -x -e
44

5+
APP="${1:-stack_wallet}"
6+
57
mkdir -p build
68
./build_secure_storage_deps.sh
79

8-
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./download.sh)
9-
10-
(cd ../../crypto_plugins/flutter_libmwc/scripts/linux && ./download.sh)
10+
if [[ "$APP" = "stack_wallet" ]]; then
11+
(cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./download.sh)
12+
(cd ../../crypto_plugins/flutter_libmwc/scripts/linux && ./download.sh)
13+
fi
1114

12-
(cd ../../crypto_plugins/frostdart/scripts/linux && ./download.sh)
15+
if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
16+
(cd ../../crypto_plugins/frostdart/scripts/linux && ./download.sh)
17+
fi
1318

1419
./build_secp256k1.sh
1520

scripts/macos/download_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22

33
set -x -e
44

5+
APP="${1:-stack_wallet}"
6+
57
mkdir -p build
68

79
PLUGINS_DIR=../../crypto_plugins
810

9-
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/macos && ./download.sh)
10-
11-
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/macos && ./download.sh)
11+
if [[ "$APP" = "stack_wallet" ]]; then
12+
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/macos && ./download.sh)
13+
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/macos && ./download.sh)
14+
fi
1215

13-
(cd "${PLUGINS_DIR}"/frostdart/scripts/macos && ./download.sh)
16+
if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
17+
(cd "${PLUGINS_DIR}"/frostdart/scripts/macos && ./download.sh)
18+
fi
1419

1520
wait
1621
echo "Done"

scripts/windows/download_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22

33
set -x -e
44

5+
APP="${1:-stack_wallet}"
6+
57
mkdir -p build
68

79
PLUGINS_DIR=../../crypto_plugins
810

9-
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/windows && ./download.sh)
10-
11-
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/windows && ./download.sh)
11+
if [[ "$APP" = "stack_wallet" ]]; then
12+
(cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/windows && ./download.sh)
13+
(cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/windows && ./download.sh)
14+
fi
1215

13-
(cd "${PLUGINS_DIR}"/frostdart/scripts/windows && ./download.sh)
16+
if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
17+
(cd "${PLUGINS_DIR}"/frostdart/scripts/windows && ./download.sh)
18+
fi
1419

1520
wait
1621
echo "Done"

0 commit comments

Comments
 (0)