mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
fix syntax errors in decred script (#2109)
* fix syntax errors in decred script * [skip ci] fix typo in error message
This commit is contained in:
parent
72e011ead0
commit
18049308df
2 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
@ -9,8 +9,8 @@ LIBWALLET_PATH="${PWD}/decred/libwallet"
|
||||||
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
||||||
LIBWALLET_VERSION="dba5327d35cb5d5d1ff113b780869deee154511f"
|
LIBWALLET_VERSION="dba5327d35cb5d5d1ff113b780869deee154511f"
|
||||||
|
|
||||||
if [ -e $LIBWALLET_PATH ]; then
|
if [[ -e $LIBWALLET_PATH ]]; then
|
||||||
rm -fr $LIBWALLET_PATH/{*,.*} || true
|
rm -fr $LIBWALLET_PATH || true
|
||||||
fi
|
fi
|
||||||
mkdir -p $LIBWALLET_PATH || true
|
mkdir -p $LIBWALLET_PATH || true
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ then
|
||||||
echo "You have these versions installed on your system currently:"
|
echo "You have these versions installed on your system currently:"
|
||||||
ls ${ANDROID_HOME}/ndk/ | cat | awk '{ print "- " $1 }'
|
ls ${ANDROID_HOME}/ndk/ | cat | awk '{ print "- " $1 }'
|
||||||
echo "echo > ~/.zprofile"
|
echo "echo > ~/.zprofile"
|
||||||
echo "echo 'export ANDROID_NDK_CERSION=..... > ~/.zprofile"
|
echo "echo 'export ANDROID_NDK_VERSION=..... > ~/.zprofile"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ do
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# PATH="${TOOLCHAIN_BASE_DIR}_${arch}/bin:${ORIGINAL_PATH}"
|
# PATH="${TOOLCHAIN_BASE_DIR}_${arch}/bin:${ORIGINAL_PATH}"
|
||||||
if [ -e ./build ]; then
|
if [[ -e ./build ]]; then
|
||||||
rm -fr ./build
|
rm -fr ./build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
. ./config.sh
|
. ./config.sh
|
||||||
LIBWALLET_PATH="${EXTERNAL_IOS_SOURCE_DIR}/libwallet"
|
LIBWALLET_PATH="${EXTERNAL_IOS_SOURCE_DIR}/libwallet"
|
||||||
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
||||||
LIBWALLET_VERSION="dba5327d35cb5d5d1ff113b780869deee154511f"
|
LIBWALLET_VERSION="dba5327d35cb5d5d1ff113b780869deee154511f"
|
||||||
|
|
||||||
if [ -e $LIBWALLET_PATH ]; then
|
if [[ -e $LIBWALLET_PATH ]]; then
|
||||||
rm -fr $LIBWALLET_PATH
|
rm -fr $LIBWALLET_PATH
|
||||||
fi
|
fi
|
||||||
mkdir -p $LIBWALLET_PATH
|
mkdir -p $LIBWALLET_PATH
|
||||||
|
@ -17,7 +17,7 @@ SYSROOT=`xcrun --sdk iphoneos --show-sdk-path`
|
||||||
CLANG="clang -target arm64-apple-ios -isysroot ${SYSROOT}"
|
CLANG="clang -target arm64-apple-ios -isysroot ${SYSROOT}"
|
||||||
CLANGXX="clang++ -target arm64-apple-ios -isysroot ${SYSROOT}"
|
CLANGXX="clang++ -target arm64-apple-ios -isysroot ${SYSROOT}"
|
||||||
|
|
||||||
if [ -e ./build ]; then
|
if [[ -e ./build ]]; then
|
||||||
rm -fr ./build
|
rm -fr ./build
|
||||||
fi
|
fi
|
||||||
CGO_ENABLED=1 GOOS=ios GOARCH=arm64 CC=$CLANG CXX=$CLANGXX \
|
CGO_ENABLED=1 GOOS=ios GOARCH=arm64 CC=$CLANG CXX=$CLANGXX \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue