2020-10-07 10:36:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Used for macos buildbot
|
|
|
|
HASH="$1"
|
|
|
|
echo "[+] hash: $HASH"
|
|
|
|
|
2020-10-09 21:22:02 +00:00
|
|
|
export DRONE=true
|
2020-10-07 10:36:04 +00:00
|
|
|
echo "[+] Building"
|
|
|
|
|
|
|
|
rm ~/feather.zip 2>&1 >/dev/null
|
|
|
|
cd ~/feather
|
2020-10-09 21:22:02 +00:00
|
|
|
git fetch --all
|
2020-10-07 10:36:04 +00:00
|
|
|
git reset --hard "$HASH"
|
|
|
|
git submodule update --init --depth 120 monero
|
|
|
|
git submodule update --init --depth 120 --recursive monero
|
|
|
|
|
2020-10-17 21:14:56 +00:00
|
|
|
cp "/Users/administrator/tor/libevent-2.1.7.dylib" "/Users/administrator/feather/src/assets/exec/libevent-2.1.7.dylib"
|
|
|
|
CMAKE_PREFIX_PATH="~/Qt/5.15.1/clang_64" TOR="/Users/administrator/tor/tor" XMRIG="/Users/administrator/xmrig/xmrig" make -j3 mac-release
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
if [[ $? -eq 0 ]]; then
|
|
|
|
echo "[+] Feather built OK"
|
|
|
|
cd ~/feather/build/bin
|
|
|
|
zip -qr ~/feather.zip feather.app
|
|
|
|
else
|
|
|
|
echo "[+] Error!"
|
|
|
|
exit 1;
|
|
|
|
fi
|