From b62ed8af30326d73eb59378b0d7a1eca21c2fbc3 Mon Sep 17 00:00:00 2001 From: yourok <8yourok8@mail.ru> Date: Tue, 15 Aug 2023 11:49:28 +0300 Subject: [PATCH] update --- build-all.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-all.sh b/build-all.sh index 7f3e9573..910ebdbe 100755 --- a/build-all.sh +++ b/build-all.sh @@ -50,12 +50,13 @@ OUTPUT="${ROOT}/dist/TorrServer" #### Build web echo "Build web" +export NODE_OPTIONS=--openssl-legacy-provider $GOBIN run gen_web.go #### Build server echo "Build server" cd "${ROOT}/server" || exit 1 -$GOBIN clean -i -r -cache #--modcache +$GOBIN clean -i -r -cache --modcache $GOBIN mod tidy BUILD_FLAGS="-ldflags=${LDFLAGS} -tags=nosqlite" @@ -92,7 +93,8 @@ declare -a COMPILERS=( export NDK_VERSION="25.2.9519653" # 25.1.8937393 #export NDK_TOOLCHAIN=${ANDROID_HOME}/ndk/${NDK_VERSION}/toolchains/llvm/prebuilt/darwin-x86_64 -export NDK_TOOLCHAIN="${PWD}/../android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64" +#export NDK_TOOLCHAIN="${PWD}/../android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64" +export NDK_TOOLCHAIN=/Users/yourok/Projects/AndroidNDK GOOS=android for V in "${COMPILERS[@]}"; do