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
|
do
|
||||||
pushd ../monero_c
|
pushd ../monero_c
|
||||||
rm -rf external/ios/build
|
rm -rf external/ios/build
|
||||||
./build_single.sh ${COIN} host-apple-ios $NPROC
|
./build_single.sh ${COIN} aarch64-apple-ios $NPROC
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
unxz -f ../monero_c/release/monero/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/host-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
|
popd
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
if [[ "x$1" == "xuniversal" ]]; then
|
|
||||||
ARCHS=(x86_64 arm64)
|
ARCHS=(x86_64 arm64)
|
||||||
else
|
|
||||||
ARCHS=$(uname -m)
|
|
||||||
fi
|
|
||||||
for COIN in monero wownero;
|
for COIN in monero wownero;
|
||||||
do
|
do
|
||||||
MONERO_LIBS=""
|
MONERO_LIBS=""
|
||||||
|
@ -34,24 +30,16 @@ else
|
||||||
for ARCH in "${ARCHS[@]}";
|
for ARCH in "${ARCHS[@]}";
|
||||||
do
|
do
|
||||||
if [[ "$ARCH" == "arm64" ]]; then
|
if [[ "$ARCH" == "arm64" ]]; then
|
||||||
export HOMEBREW_PREFIX=/opt/homebrew
|
HOST="aarch64-apple-darwin"
|
||||||
HOST="aarch64-host-apple-darwin"
|
|
||||||
else
|
else
|
||||||
export HOMEBREW_PREFIX=/usr/local
|
HOST="x86_64-apple-darwin"
|
||||||
HOST="${ARCH}-host-apple-darwin"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MONERO_LIBS="$MONERO_LIBS -arch ${ARCH} ${MONEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
|
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"
|
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
|
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
|
unxz -f ./release/${COIN}/${HOST}_libwallet2_api_c.dylib.xz
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
|
@ -23,7 +23,7 @@ final List<String> triplets = [
|
||||||
// "host-apple-darwin", // not available on CI (yet)
|
// "host-apple-darwin", // not available on CI (yet)
|
||||||
// "x86_64-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)
|
"aarch64-host-apple-darwin", // apple silicon macbooks (local builds)
|
||||||
"host-apple-ios",
|
"aarch64-apple-ios",
|
||||||
];
|
];
|
||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
|
|
Loading…
Reference in a new issue