script tweaks. Requires a10f90532b

This commit is contained in:
julian 2024-04-12 11:32:37 -06:00
parent 02a5339146
commit 163bce4a98
2 changed files with 18 additions and 14 deletions

View file

@ -10,11 +10,13 @@ mkdir -p build
. ./config.sh
./install_ndk.sh
(cd ../../crypto_plugins/flutter_liblelantus/scripts/android && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libepiccash/scripts/android && ./install_ndk.sh && ./build_opensll.sh && ./build_all.sh ) &
(cd ../../crypto_plugins/flutter_libmonero/scripts/android/ && ./build_all.sh ) &&
set_rust_to_1720 &
(cd ../../crypto_plugins/frostdart/scripts/android && ./build_all.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"

View file

@ -2,18 +2,20 @@
mkdir -p build
. ./config.sh
TOOLCHAIN_DIR=${WORKDIR}/toolchain
ANDROID_NDK_SHA256="8381c440fe61fcbb01e209211ac01b519cd6adf51ab1c2281d5daad6ca4c8c8c"
if [ ! -e "$ANDROID_NDK_ZIP" ]; then
curl https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip -o ${ANDROID_NDK_ZIP}
curl https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip -o "${ANDROID_NDK_ZIP}"
fi
echo $ANDROID_NDK_SHA256 $ANDROID_NDK_ZIP | sha256sum -c || exit 1
echo "${ANDROID_NDK_SHA256}" "${ANDROID_NDK_ZIP}" | sha256sum -c || exit 1
mkdir ../../crypto_plugins/flutter_libmonero/scripts/android/build
mkdir ../../crypto_plugins/flutter_liblelantus/scripts/android/build
mkdir ../../crypto_plugins/flutter_libepiccash/scripts/android/build
cp ${ANDROID_NDK_ZIP} ../../crypto_plugins/flutter_libmonero/scripts/android/build/
cp ${ANDROID_NDK_ZIP} ../../crypto_plugins/flutter_liblelantus/scripts/android/build/
cp ${ANDROID_NDK_ZIP} ../../crypto_plugins/flutter_libepiccash/scripts/android/build/
PLUGINS_DIR=../../crypto_plugins
mkdir -p "${PLUGINS_DIR}"/flutter_libmonero/scripts/android/build
mkdir -p "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android/build
mkdir -p "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android/build
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_libmonero/scripts/android/build/
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android/build/
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android/build/