diff options
| author | cyan <cyjan@mrcyjanek.net> | 2024-08-01 12:58:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 12:58:41 +0200 |
| commit | f2e150bf89fcb413ad7ad362c6fa34a3ebd43a99 (patch) | |
| tree | 330b11f851747df51b13c578035ec9d08055061f /external/ios/build_sodium.sh | |
| parent | 0737e1a7a1335b77b9bd90505241d5647eb7fd3e (diff) | |
update ios scripts to not clone dependencies at build time (#25)
* update ios scripts to not clone dependencies at runtime
* fix ios build scripts
Diffstat (limited to 'external/ios/build_sodium.sh')
| -rwxr-xr-x | external/ios/build_sodium.sh | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/external/ios/build_sodium.sh b/external/ios/build_sodium.sh index fb45e17..ecb4a5e 100755 --- a/external/ios/build_sodium.sh +++ b/external/ios/build_sodium.sh @@ -16,19 +16,12 @@ if [ -d "$SODIUM_PATH" ]; then echo "Sodium directory already exists." else echo "Cloning Sodium from $SODIUM_URL" - git clone $SODIUM_URL $SODIUM_PATH -fi - -# Verify if the repository was cloned successfully. -if [ -d "$SODIUM_PATH/.git" ]; then - echo "Sodium repository cloned successfully." - cd $SODIUM_PATH - git checkout 443617d7507498f7477703f0b51cb596d4539262 -else - echo "Failed to clone Sodium repository. Exiting." - exit 1 + mkdir -p $SODIUM_PATH || true + rm -rf $SODIUM_PATH + cp -r "${MONEROC_DIR}/external/libsodium" $SODIUM_PATH fi +cd $SODIUM_PATH ../../../../libsodium_apple-ios.sh mv -f ${SODIUM_PATH}/libsodium-apple/ios/include/* $EXTERNAL_IOS_INCLUDE_DIR |
