mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
update build scripts
This commit is contained in:
parent
fa633fa0bf
commit
a597ab48ab
7 changed files with 11 additions and 22 deletions
Binary file not shown.
|
@ -1 +1 @@
|
|||
../scripts/monero_c/release/monero/host-apple-ios_libwallet2_api_c.dylib
|
||||
../scripts/monero_c/release/monero/aarch64-apple-ios_libwallet2_api_c.dylib
|
|
@ -1 +1 @@
|
|||
../scripts/monero_c/release/wownero/host-apple-ios_libwallet2_api_c.dylib
|
||||
../scripts/monero_c/release/wownero/aarch64-apple-ios_libwallet2_api_c.dylib
|
|
@ -1 +1 @@
|
|||
../scripts/monero_c/release/zano/host-apple-ios_libwallet2_api_c.dylib
|
||||
../scripts/monero_c/release/zano/aarch64-apple-ios_libwallet2_api_c.dylib
|
|
@ -20,9 +20,10 @@ for COIN in monero wownero zano;
|
|||
do
|
||||
pushd ../monero_c
|
||||
rm -rf external/ios/build
|
||||
./build_single.sh ${COIN} host-apple-ios $NPROC
|
||||
./build_single.sh ${COIN} aarch64-apple-ios $NPROC
|
||||
popd
|
||||
done
|
||||
|
||||
unxz -f ../monero_c/release/monero/host-apple-ios_libwallet2_api_c.dylib.xz
|
||||
unxz -f ../monero_c/release/wownero/host-apple-ios_libwallet2_api_c.dylib.xz
|
||||
unxz -f ../monero_c/release/monero/aarch64-apple-ios_libwallet2_api_c.dylib.xz
|
||||
unxz -f ../monero_c/release/wownero/aarch64-apple-ios_libwallet2_api_c.dylib.xz
|
||||
unxz -f ../monero_c/release/zano/aarch64-apple-ios_libwallet2_api_c.dylib.xz
|
||||
|
|
|
@ -22,11 +22,7 @@ then
|
|||
popd
|
||||
done
|
||||
else
|
||||
if [[ "x$1" == "xuniversal" ]]; then
|
||||
ARCHS=(x86_64 arm64)
|
||||
else
|
||||
ARCHS=$(uname -m)
|
||||
fi
|
||||
for COIN in monero wownero;
|
||||
do
|
||||
MONERO_LIBS=""
|
||||
|
@ -34,24 +30,16 @@ else
|
|||
for ARCH in "${ARCHS[@]}";
|
||||
do
|
||||
if [[ "$ARCH" == "arm64" ]]; then
|
||||
export HOMEBREW_PREFIX=/opt/homebrew
|
||||
HOST="aarch64-host-apple-darwin"
|
||||
HOST="aarch64-apple-darwin"
|
||||
else
|
||||
export HOMEBREW_PREFIX=/usr/local
|
||||
HOST="${ARCH}-host-apple-darwin"
|
||||
HOST="x86_64-apple-darwin"
|
||||
fi
|
||||
|
||||
MONERO_LIBS="$MONERO_LIBS -arch ${ARCH} ${MONEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
|
||||
WOWNERO_LIBS="$WOWNERO_LIBS -arch ${ARCH} ${WOWNEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
|
||||
|
||||
if [[ ! $(uname -m) == $ARCH ]]; then
|
||||
PRC="arch -${ARCH}"
|
||||
else
|
||||
PRC=""
|
||||
fi
|
||||
|
||||
pushd ../monero_c
|
||||
$PRC ./build_single.sh ${COIN} ${HOST} $NPROC
|
||||
./build_single.sh ${COIN} ${HOST} $NPROC
|
||||
unxz -f ./release/${COIN}/${HOST}_libwallet2_api_c.dylib.xz
|
||||
popd
|
||||
done
|
||||
|
|
|
@ -23,7 +23,7 @@ final List<String> triplets = [
|
|||
// "host-apple-darwin", // not available on CI (yet)
|
||||
// "x86_64-host-apple-darwin", // not available on CI (yet)
|
||||
"aarch64-host-apple-darwin", // apple silicon macbooks (local builds)
|
||||
"host-apple-ios",
|
||||
"aarch64-apple-ios",
|
||||
];
|
||||
|
||||
Future<void> main() async {
|
||||
|
|
Loading…
Reference in a new issue