fix rosseta builds (#1593)

This commit is contained in:
cyan 2024-08-17 04:25:10 +02:00 committed by GitHub
parent fb3f64facf
commit ec8c404086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View file

@ -43,15 +43,14 @@ else
WOWNERO_LIBS=" -arch ${ARCH} ${WOWNEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib" WOWNERO_LIBS=" -arch ${ARCH} ${WOWNEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
if [[ ! $(uname -m) == $ARCH ]]; then if [[ ! $(uname -m) == $ARCH ]]; then
PRC="arch -${ARCH}" PRC="arch -${ARCH}"
fi fi
pushd ../monero_c pushd ../monero_c
$PRC ./build_single.sh ${COIN} ${HOST} $NPROC $PRC ./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
done done
fi fi

View file

@ -8,7 +8,7 @@ if [[ ! -d "monero_c" ]];
then then
git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip
cd monero_c cd monero_c
git checkout bcb328a4956105dc182afd0ce2e48fe263f5f20b git checkout 5de323b1ba7387cf73973042f06383d4dbe619f5
git reset --hard git reset --hard
git submodule update --init --force --recursive git submodule update --init --force --recursive
./apply_patches.sh monero ./apply_patches.sh monero