mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-06 07:22:14 +00:00
* arm64 linux support * add missing dependencies to Dockerfile * run everything in docker to not break permissions * remove current linux dir * proper directory name * Clean up build script by removing .flatpak-builder directory flatpak before build process * account for arm64 in docs [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
28 lines
No EOL
785 B
Bash
Executable file
28 lines
No EOL
785 B
Bash
Executable file
#!/bin/bash
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/functions.sh"
|
|
|
|
set -x -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
../prepare_moneroc.sh
|
|
|
|
for COIN in monero wownero;
|
|
do
|
|
pushd ../monero_c
|
|
# Determine target architecture based on system architecture
|
|
if [[ $(uname -m) == "arm64" || $(uname -m) == "aarch64" ]]; then
|
|
target="aarch64-linux-gnu"
|
|
else
|
|
target="x86_64-linux-gnu"
|
|
fi
|
|
|
|
if [[ -f "release/${COIN}/${target}_libwallet2_api_c.so" ]];
|
|
then
|
|
echo "file exist, not building monero_c for ${COIN}/$target.";
|
|
else
|
|
./build_single.sh ${COIN} $target -j$MAKE_JOB_COUNT
|
|
unxz -f ../monero_c/release/${COIN}/${target}_libwallet2_api_c.so.xz
|
|
fi
|
|
popd
|
|
done |