Files
hash-wallet/scripts/prepare_moneroc.sh
T

33 lines
686 B
Bash
Executable File

#!/bin/bash
set -x -e
cd "$(dirname "$0")"
if [[ ! -d "monero_c/.git" ]];
then
rm -rf monero_c
git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
cd monero_c
else
cd monero_c
fi
# NOTE: Make sure to update monero_c prebuilds link in workflow files
# https://github.com/MrCyjaneK/monero_c/releases/download/v0.18.4.6-RC1/release-bundle.zip
git fetch -a
git checkout c157cb82973b05d1226b39b4d8de0bec4aa10000
git reset --hard
git submodule update --init --force --recursive
for coin in monero wownero zano;
do
if [[ ! -f "$coin/.patch-applied" ]];
then
./apply_patches.sh $coin
fi
done
cd ..
echo "monero_c source prepared".