What changed, and why it matters
This commit is a routine cleanup of build scripts. It removes old shell scripts that manually compiled cryptocurrency plugin libraries and updates the build instructions to rely on Flutter's newer native-assets system. There is no indication of a security fix, vulnerability, or malicious change.
No security action required. Treat as normal build-system refactoring; verify CI still passes and native-assets packages build correctly on all target platforms.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit deletes legacy per-platform build_all.sh/download_all.sh scripts and rust_version.sh, removes CMake logic conditionally installing libepic_cash_wallet and libmwc_wallet shared libraries, and updates scripts/build_app.sh to build only remaining non-pub native dependencies (secure storage deps and secp256k1). Crypto plugins (flutter_libepiccash, flutter_libmwc, frostdart) are now treated as native-assets packages built by their own hooks during flutter build. No code handling secrets, cryptography, network, or user data is modified.
Changed components
scripts/android/build_all.shscripts/android/config.shscripts/android/download_all.shscripts/app_config/configure_campfire.shscripts/app_config/configure_stack_duo.shscripts/app_config/configure_stack_wallet.shscripts/app_config/platforms/linux/platform_config.shscripts/app_config/platforms/windows/platform_config.shscripts/app_config/templates/linux/CMakeLists.txtscripts/app_config/templates/windows/CMakeLists.txtscripts/build_app.shscripts/ios/build_all.shscripts/ios/download_all.shscripts/linux/build_all.shscripts/linux/download_all.shscripts/macos/build_all.shscripts/macos/download_all.shscripts/rust_version.shscripts/windows/build_all.shscripts/windows/deps.shscripts/windows/download_all.shdocs/building.mdInspect captured patch +32 / −343
diff --git a/docs/building.md b/docs/building.md
index af2d328..1114556 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -289,15 +289,13 @@ wsl
https://stackoverflow.com/questions/46610256/chmod-wsl-bash-doesnt-work/50856772#50856772
-Then build windows `dll` libraries by running the following script on the WSL2 Ubuntu 24.04 host:
+Then build `secp256k1.dll` by running the following script on the WSL2 Ubuntu 24.04 host:
-- `stack_wallet/scripts/windows/build_all.sh`
+- `stack_wallet/scripts/windows/build_secp256k1_wsl.sh`
-If the DLLs were built on the WSL filesystem instead of on Windows, copy the resulting `dll`s to their respective positions on the Windows host:
+The crypto plugin libraries (epiccash, mwc, frostdart) are native-assets packages and are built by their build hooks during `flutter build`; they no longer need to be built here.
-- `stack_wallet/crypto_plugins/flutter_libepiccash/scripts/windows/build/libepic_cash_wallet.dll`
-
-<!-- TODO: script the copying or installation of libraries from WSL2 to the parent Windows host -->
+If the DLL was built on the WSL filesystem instead of on Windows, copy `stack_wallet/build/secp256k1.dll` to the same position on the Windows host.
Frostdart will be built by the Windows host later.
@@ -356,15 +354,6 @@ cd .. // When finished go back to the root directory.
or manually by creating the files referenced in that script with the specified content.
-### Build frostdart
-
-In PowerShell on the Windows host, navigate to the `stack_wallet` folder:
-```
-cd crypto_plugins/frostdart/scripts/windows
-./build_all.bat
-cd .. // When finished go back to the root directory.
-```
-
### Running
Run the following commands:
diff --git a/scripts/android/build_all.sh b/scripts/android/build_all.sh
deleted file mode 100755
index 1ee7c10..0000000
--- a/scripts/android/build_all.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-. ./config.sh
-
-PLUGINS_DIR=../../crypto_plugins
-
-source ../rust_version.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- set_rust_version_for_libepiccash
- (cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./build_all.sh )
- set_rust_version_for_libmwc
- (cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/android && ./build_all.sh )
-fi
-
-set_rust_to_everything_else
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./build_all.sh )
-fi
-
-wait
-echo "Done building"
diff --git a/scripts/android/config.sh b/scripts/android/config.sh
deleted file mode 100644
index 8d560ec..0000000
--- a/scripts/android/config.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-export WORKDIR="$(pwd)/"build
-# Change this Value to a lower number if you run out of memory while compiling
-export OVERRIDE_THREADS="$(nproc)"
\ No newline at end of file
diff --git a/scripts/android/download_all.sh b/scripts/android/download_all.sh
deleted file mode 100755
index 34c708c..0000000
--- a/scripts/android/download_all.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-. ./config.sh
-
-PLUGINS_DIR=../../crypto_plugins
-
-if [[ "$APP" = "stack_wallet" ]]; then
- (cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android && ./download.sh)
- (cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/android && ./download.sh)
-fi
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd "${PLUGINS_DIR}"/frostdart/scripts/android && ./download.sh)
-fi
-
-wait
-echo "Done"
diff --git a/scripts/app_config/configure_campfire.sh b/scripts/app_config/configure_campfire.sh
index e12697b..40e03df 100755
--- a/scripts/app_config/configure_campfire.sh
+++ b/scripts/app_config/configure_campfire.sh
@@ -40,8 +40,6 @@ dart "${APP_PROJECT_ROOT_DIR}/tool/gen_interfaces.dart" \
TOR \
FIRO
-export INCLUDE_EPIC_SO="OFF"
-export INCLUDE_MWC_SO="OFF"
pushd "${APP_PROJECT_ROOT_DIR}"
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
diff --git a/scripts/app_config/configure_stack_duo.sh b/scripts/app_config/configure_stack_duo.sh
index 7d6bae0..d0bf369 100755
--- a/scripts/app_config/configure_stack_duo.sh
+++ b/scripts/app_config/configure_stack_duo.sh
@@ -33,8 +33,6 @@ dart "${APP_PROJECT_ROOT_DIR}/tool/gen_interfaces.dart" \
TOR \
FROST
-export INCLUDE_EPIC_SO="OFF"
-export INCLUDE_MWC_SO="OFF"
pushd "${APP_PROJECT_ROOT_DIR}"
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
diff --git a/scripts/app_config/configure_stack_wallet.sh b/scripts/app_config/configure_stack_wallet.sh
index 56da694..ae16b70 100755
--- a/scripts/app_config/configure_stack_wallet.sh
+++ b/scripts/app_config/configure_stack_wallet.sh
@@ -61,8 +61,6 @@ if [[ "$1" == "windows" ]]; then
fi
-export INCLUDE_EPIC_SO="ON"
-export INCLUDE_MWC_SO="ON"
pushd "${APP_PROJECT_ROOT_DIR}"
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
diff --git a/scripts/app_config/platforms/linux/platform_config.sh b/scripts/app_config/platforms/linux/platform_config.sh
index 7214578..be4f6bd 100755
--- a/scripts/app_config/platforms/linux/platform_config.sh
+++ b/scripts/app_config/platforms/linux/platform_config.sh
@@ -16,5 +16,3 @@ done
sed -i "s/${APP_BASIC_NAME_PLACEHOLDER}/${NEW_BASIC_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${LINUX_TF_0}"
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${LINUX_TF_0}"
sed -i "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${LINUX_TF_1}"
-sed -i "s/INCLUDE_EPIC_SO_FLAG/${INCLUDE_EPIC_SO}/g" "${APP_PROJECT_ROOT_DIR}/${LINUX_TF_0}"
-sed -i "s/INCLUDE_MWC_SO_FLAG/${INCLUDE_MWC_SO}/g" "${APP_PROJECT_ROOT_DIR}/${LINUX_TF_0}"
\ No newline at end of file
diff --git a/scripts/app_config/platforms/windows/platform_config.sh b/scripts/app_config/platforms/windows/platform_config.sh
index cbce1d8..82305f8 100755
--- a/scripts/app_config/platforms/windows/platform_config.sh
+++ b/scripts/app_config/platforms/windows/platform_config.sh
@@ -16,5 +16,3 @@ done
sed -i "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${WIN_TF_0}"
sed -i "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${WIN_TF_1}"
sed -i "s/${APP_BASIC_NAME_PLACEHOLDER}/${NEW_BASIC_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${WIN_TF_2}"
-sed -i "s/INCLUDE_EPIC_SO_FLAG/${INCLUDE_EPIC_SO}/g" "${APP_PROJECT_ROOT_DIR}/${WIN_TF_2}"
-sed -i "s/INCLUDE_MWC_SO_FLAG/${INCLUDE_MWC_SO}/g" "${APP_PROJECT_ROOT_DIR}/${WIN_TF_2}"
diff --git a/scripts/app_config/templates/linux/CMakeLists.txt b/scripts/app_config/templates/linux/CMakeLists.txt
index d36efad..1eca6af 100644
--- a/scripts/app_config/templates/linux/CMakeLists.txt
+++ b/scripts/app_config/templates/linux/CMakeLists.txt
@@ -9,8 +9,6 @@ set(BINARY_NAME "place_holder")
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.place.holder")
-set(INCLUDE_EPIC_SO INCLUDE_EPIC_SO_FLAG)
-set(INCLUDE_MWC_SO INCLUDE_MWC_SO_FLAG)
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
@@ -154,16 +152,6 @@ install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
-if(INCLUDE_EPIC_SO)
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libepiccash/linux/bin/x86_64-unknown-linux-gnu/release/libepic_cash_wallet.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
-if(INCLUDE_MWC_SO)
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libmwc/linux/bin/x86_64-unknown-linux-gnu/release/libmwc_wallet.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
if(USE_SYSTEM_SECURE_STORAGE_DEPS)
file(GLOB JSONCPP_SO_FILES "${JSONCPP_LIBDIR}/libjsoncpp.so*")
install(FILES ${JSONCPP_SO_FILES} DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
diff --git a/scripts/app_config/templates/windows/CMakeLists.txt b/scripts/app_config/templates/windows/CMakeLists.txt
index d152222..c261306 100644
--- a/scripts/app_config/templates/windows/CMakeLists.txt
+++ b/scripts/app_config/templates/windows/CMakeLists.txt
@@ -6,8 +6,6 @@ project(place_holder LANGUAGES CXX)
# the on-disk name of your application.
set(BINARY_NAME "place_holder")
-set(INCLUDE_EPIC_SO INCLUDE_EPIC_SO_FLAG)
-set(INCLUDE_MWC_SO INCLUDE_MWC_SO_FLAG)
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
@@ -83,16 +81,6 @@ install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
-if(INCLUDE_EPIC_SO)
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libepiccash/scripts/windows/build/libepic_cash_wallet.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
-if(INCLUDE_MWC_SO)
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libmwc/scripts/windows/build/libmwc_wallet.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
- COMPONENT Runtime)
-endif()
-
if(PLUGIN_BUNDLED_LIBRARIES)
install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
diff --git a/scripts/build_app.sh b/scripts/build_app.sh
index 051236d..acedd35 100755
--- a/scripts/build_app.sh
+++ b/scripts/build_app.sh
@@ -32,7 +32,9 @@ unset -v APP_BUILD_PLATFORM
unset -v APP_NAMED_ID
# optional args (with defaults)
-BUILD_CRYPTO_PLUGINS=0
+# -i: skip building the platform native deps (secure storage deps, secp256k1).
+SKIP_NATIVE_DEPS_BUILD=0
+# -d: use downloaded/prebuilt binaries instead of building from source where supported.
DOWNLOAD_CRYPTO_PLUGINS=0
BUILD_ISAR_FROM_SOURCE=0
USE_SYSTEM_SECURE_STORAGE_DEPS=0
@@ -44,7 +46,7 @@ while getopts "v:b:p:a:idfs" opt; do
b) APP_BUILD_NUMBER="$OPTARG" ;;
p) APP_BUILD_PLATFORM="$OPTARG" ;;
a) APP_NAMED_ID="$OPTARG" ;;
- i) BUILD_CRYPTO_PLUGINS=1 ;;
+ i) SKIP_NATIVE_DEPS_BUILD=1 ;;
d) DOWNLOAD_CRYPTO_PLUGINS=1 ;;
f) BUILD_ISAR_FROM_SOURCE=1 ;;
s) USE_SYSTEM_SECURE_STORAGE_DEPS=1 ;;
@@ -80,10 +82,8 @@ source "${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates/configure_template_
export BUILD_ISAR_FROM_SOURCE
export USE_SYSTEM_SECURE_STORAGE_DEPS
-# checks for the correct platform dir and pushes it for later
-if printf '%s\0' "${APP_PLATFORMS[@]}" | grep -Fxqz -- "${APP_BUILD_PLATFORM}"; then
- pushd "${APP_PROJECT_ROOT_DIR}/scripts/${APP_BUILD_PLATFORM}"
-else
+# checks for a valid platform
+if ! printf '%s\0' "${APP_PLATFORMS[@]}" | grep -Fxqz -- "${APP_BUILD_PLATFORM}"; then
echo "Invalid platform: ${APP_BUILD_PLATFORM}"
usage
fi
@@ -115,12 +115,24 @@ else
exit 1
fi
-if [ "$BUILD_CRYPTO_PLUGINS" -eq 0 ]; then
- if [ "$DOWNLOAD_CRYPTO_PLUGINS" -eq 1 ]; then
- ./download_all.sh "$APP_NAMED_ID"
- else
- ./build_all.sh "$APP_NAMED_ID"
- fi
+# Build platform native deps that are not provided by pub packages. The crypto
+# plugins (flutter_libepiccash, flutter_libmwc, frostdart) are native-assets
+# packages now; their build hooks compile (or fetch) them during flutter build.
+if [ "$SKIP_NATIVE_DEPS_BUILD" -eq 0 ]; then
+ case "$APP_BUILD_PLATFORM" in
+ linux)
+ pushd "${APP_PROJECT_ROOT_DIR}/scripts/linux"
+ ./build_secure_storage_deps.sh
+ ./build_secp256k1.sh
+ popd
+ ;;
+ windows)
+ # WSL cross-compile of secp256k1.dll. CI builds it natively instead.
+ if [ "$DOWNLOAD_CRYPTO_PLUGINS" -eq 0 ]; then
+ pushd "${APP_PROJECT_ROOT_DIR}/scripts/windows"
+ ./build_secp256k1_wsl.sh
+ popd
+ fi
+ ;;
+ esac
fi
-
-popd
diff --git a/scripts/ios/build_all.sh b/scripts/ios/build_all.sh
deleted file mode 100755
index f025c6c..0000000
--- a/scripts/ios/build_all.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-# ensure ios rust triples are there
-rustup target add aarch64-apple-ios
-rustup target add x86_64-apple-ios
-
-source ../rust_version.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- set_rust_version_for_libepiccash
- (cd ../../crypto_plugins/flutter_libepiccash/scripts/ios && ./build_all.sh )
- set_rust_version_for_libmwc
- (cd ../../crypto_plugins/flutter_libmwc/scripts/ios/ && ./build_all.sh )
-fi
-
-set_rust_to_everything_else
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd ../../crypto_plugins/frostdart/scripts/ios && ./build_all.sh )
-fi
-
-wait
-echo "Done building"
diff --git a/scripts/ios/download_all.sh b/scripts/ios/download_all.sh
deleted file mode 100755
index 1e5866c..0000000
--- a/scripts/ios/download_all.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-
-PLUGINS_DIR=../../crypto_plugins
-
-if [[ "$APP" = "stack_wallet" ]]; then
- (cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/ios && ./download.sh)
- (cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/ios && ./download.sh)
-fi
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd "${PLUGINS_DIR}"/frostdart/scripts/ios && ./download.sh)
-fi
-
-wait
-echo "Done"
diff --git a/scripts/linux/build_all.sh b/scripts/linux/build_all.sh
deleted file mode 100755
index d2c703d..0000000
--- a/scripts/linux/build_all.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-# 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
-
-source ../rust_version.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- set_rust_version_for_libepiccash
- (cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./build_all.sh )
- set_rust_version_for_libmwc
- (cd ../../crypto_plugins/flutter_libmwc/scripts/linux && ./build_all.sh )
-fi
-
-set_rust_to_everything_else
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd ../../crypto_plugins/frostdart/scripts/linux && ./build_all.sh )
-fi
-
-./build_secp256k1.sh
-
-wait
-echo "Done building"
diff --git a/scripts/linux/download_all.sh b/scripts/linux/download_all.sh
deleted file mode 100755
index 1da22e4..0000000
--- a/scripts/linux/download_all.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-./build_secure_storage_deps.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- (cd ../../crypto_plugins/flutter_libepiccash/scripts/linux && ./download.sh)
- (cd ../../crypto_plugins/flutter_libmwc/scripts/linux && ./download.sh)
-fi
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd ../../crypto_plugins/frostdart/scripts/linux && ./download.sh)
-fi
-
-./build_secp256k1.sh
-
-wait
-echo "Done"
diff --git a/scripts/macos/build_all.sh b/scripts/macos/build_all.sh
deleted file mode 100755
index 4dbefd5..0000000
--- a/scripts/macos/build_all.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-source ../rust_version.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- set_rust_version_for_libepiccash
- (cd ../../crypto_plugins/flutter_libepiccash/scripts/macos && ./build_all.sh )
- set_rust_version_for_libmwc
- (cd ../../crypto_plugins/flutter_libmwc/scripts/macos && ./build_all.sh )
-fi
-
-set_rust_to_everything_else
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd ../../crypto_plugins/frostdart/scripts/macos && ./build_all.sh )
-fi
-
-wait
-echo "Done building"
diff --git a/scripts/macos/download_all.sh b/scripts/macos/download_all.sh
deleted file mode 100755
index 36dce29..0000000
--- a/scripts/macos/download_all.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-
-PLUGINS_DIR=../../crypto_plugins
-
-if [[ "$APP" = "stack_wallet" ]]; then
- (cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/macos && ./download.sh)
- (cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/macos && ./download.sh)
-fi
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd "${PLUGINS_DIR}"/frostdart/scripts/macos && ./download.sh)
-fi
-
-wait
-echo "Done"
diff --git a/scripts/rust_version.sh b/scripts/rust_version.sh
deleted file mode 100755
index 68c52d6..0000000
--- a/scripts/rust_version.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-
-set_rust_to_everything_else() {
- if rustup toolchain list | grep -q "1.85.1"; then
- rustup default 1.89.0
- else
- echo "Rust version 1.89.0 is not installed. Please install it using 'rustup install 1.89.0'." >&2
- exit 1
- fi
-}
-
-set_rust_version_for_libepiccash() {
- if rustup toolchain list | grep -q "1.89.0"; then
- rustup default 1.89.0
- else
- echo "Rust version 1.89.0 is not installed. Please install it using 'rustup install 1.89.0'." >&2
- exit 1
- fi
-}
-
-set_rust_version_for_libmwc() {
- if rustup toolchain list | grep -q "1.85.1"; then
- rustup default 1.85.1
- else
- echo "Rust version 1.85.1 is not installed. Please install it using 'rustup install 1.85.1'." >&2
- exit 1
- fi
-}
\ No newline at end of file
diff --git a/scripts/windows/build_all.sh b/scripts/windows/build_all.sh
deleted file mode 100755
index 6d3f3f5..0000000
--- a/scripts/windows/build_all.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-
-source ../rust_version.sh
-
-if [[ "$APP" = "stack_wallet" ]]; then
- set_rust_version_for_libepiccash
- (cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./build_all.sh )
- set_rust_version_for_libmwc
- (cd ../../crypto_plugins/flutter_libmwc/scripts/windows && ./build_all.sh )
-fi
-
-set_rust_to_everything_else
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd ../../crypto_plugins/frostdart/scripts/windows && ./build_all.sh )
-fi
-
-./build_secp256k1_wsl.sh
-
-wait
-echo "Done building"
diff --git a/scripts/windows/deps.sh b/scripts/windows/deps.sh
index 6786700..bae12bc 100644
--- a/scripts/windows/deps.sh
+++ b/scripts/windows/deps.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-cd ../../crypto_plugins/flutter_libepiccash/scripts/windows && ./deps.sh
-(cd ../../crypto_plugins/flutter_libmwc/scripts/windows && ./deps.sh)
+# Toolchain for cross-compiling secp256k1.dll from WSL (build_secp256k1_wsl.sh).
+sudo apt install clang gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
sudo apt install libgtk2.0-dev
wait
diff --git a/scripts/windows/download_all.sh b/scripts/windows/download_all.sh
deleted file mode 100755
index 0585885..0000000
--- a/scripts/windows/download_all.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -x -e
-
-APP="${1:-stack_wallet}"
-
-mkdir -p build
-
-PLUGINS_DIR=../../crypto_plugins
-
-if [[ "$APP" = "stack_wallet" ]]; then
- (cd "${PLUGINS_DIR}"/flutter_libepiccash/scripts/windows && ./download.sh)
- (cd "${PLUGINS_DIR}"/flutter_libmwc/scripts/windows && ./download.sh)
-fi
-
-if [[ "$APP" = "stack_wallet" || "$APP" = "stack_duo" ]]; then
- (cd "${PLUGINS_DIR}"/frostdart/scripts/windows && ./download.sh)
-fi
-
-wait
-echo "Done"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.