changed paths in build_zano.sh

This commit is contained in:
leo 2024-10-23 16:42:28 +00:00
parent 2c83de3a4d
commit 956c469036
2 changed files with 13 additions and 5 deletions

View file

@ -6,9 +6,10 @@ set -o xtrace
ZANO_SRC_DIR=${WORKDIR}/zano
ZANO_CHECKOUT_ID=develop
git clone --recursive https://github.com/hyle-team/zano.git ${ZANO_SRC_DIR}
git clone --recurse-submodules -b ${ZANO_CHECKOUT_ID} https://github.com/hyle-team/zano.git ${ZANO_SRC_DIR}
#git clone --recursive https://github.com/hyle-team/zano.git ${ZANO_SRC_DIR}
cd $ZANO_SRC_DIR
git checkout ${ZANO_CHECKOUT_ID}
#git checkout ${ZANO_CHECKOUT_ID}
git submodule init
git submodule update
git pull -r
@ -90,4 +91,6 @@ fi
cp -r ./_install/$ARCH_ABI/lib/* $DEST_LIB_DIR
#cp ../../src/wallet/api/wallet2_api.h $DEST_INCLUDE_DIR
./copy_zano_libs.sh
done

View file

@ -1,8 +1,10 @@
#!/bin/bash
WORKDIR=/opt/android
CW_DIR=${WORKDIR}/cake_wallet
CW_EXRTERNAL_DIR=${CW_DIR}/cw_shared_external/ios/External/android
#CW_DIR=${WORKDIR}/zano_cake_wallet
CW_DIR=$(cd ../.. && pwd)
echo "CW_DIR: $CW_DIR"
CW_EXTERNAL_DIR=${CW_DIR}/cw_shared_external/ios/External/android
for arch in "aarch" "aarch64" "i686" "x86_64"
do
@ -20,10 +22,13 @@ case $arch in
ABI="x86_64";;
esac
LIB_DIR=${CW_EXRTERNAL_DIR}/${ABI}/lib
LIB_DIR=${CW_EXTERNAL_DIR}/${ABI}/lib
mkdir -p $LIB_DIR
cp -r ${PREFIX}/lib/* $LIB_DIR
mkdir -p ${CW_DIR}/cw_shared_external/ios/External/ios/sources/zano/src/wallet/
cp ${WORKDIR}/zano/src/wallet/plain_wallet_api.h ${CW_DIR}/cw_shared_external/ios/External/ios/sources/zano/src/wallet/
done