wowlet/utils/build_macos.sh
2021-02-18 12:20:16 +03:00

26 lines
715 B
Bash

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