From f2e150bf89fcb413ad7ad362c6fa34a3ebd43a99 Mon Sep 17 00:00:00 2001 From: cyan Date: Thu, 1 Aug 2024 12:58:41 +0200 Subject: update ios scripts to not clone dependencies at build time (#25) * update ios scripts to not clone dependencies at runtime * fix ios build scripts --- external/ios/build_boost.sh | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'external/ios/build_boost.sh') diff --git a/external/ios/build_boost.sh b/external/ios/build_boost.sh index 11dcead..4bfbfeb 100755 --- a/external/ios/build_boost.sh +++ b/external/ios/build_boost.sh @@ -5,32 +5,22 @@ set -e . ./config.sh MIN_IOS_VERSION=10.0 -BOOST_URL="https://github.com/cake-tech/Apple-Boost-BuildScript.git" BOOST_DIR_PATH="${EXTERNAL_IOS_SOURCE_DIR}/Apple-Boost-BuildScript" BOOST_VERSION=1.84.0 BOOST_LIBS="random regex graph random chrono thread filesystem system date_time locale serialization program_options" echo "============================ Boost ============================" -echo "Cloning Apple-Boost-BuildScript from - $BOOST_URL" - # Check if the directory already exists. if [ -d "$BOOST_DIR_PATH" ]; then echo "Boost directory already exists." else echo "Cloning Boost from $BOOST_URL" - git clone -b build $BOOST_URL $BOOST_DIR_PATH -fi - -# Verify if the repository was cloned successfully. -if [ -d "$BOOST_DIR_PATH/.git" ]; then - echo "Boost repository cloned successfully." - cd $BOOST_DIR_PATH - git checkout build -else - echo "Failed to clone Boost repository. Exiting." - exit 1 + mkdir -p $BOOST_DIR_PATH || true + rm -rf $BOOST_DIR_PATH || true + cp -r "${MONEROC_DIR}/external/Apple-Boost-BuildScript" $BOOST_DIR_PATH fi +cd $BOOST_DIR_PATH ./boost.sh -ios \ --min-ios-version ${MIN_IOS_VERSION} \ -- cgit v1.2.3