wowlet/utils/build_macos.sh

27 lines
685 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Used for macos buildbot
HASH="$1"
echo "[+] hash: $HASH"
export DRONE=true
echo "[+] Building"
2021-02-22 06:51:09 +00:00
rm ~/wowlet.zip 2>&1 >/dev/null
cd ~/wowlet
2020-12-21 20:34:36 +00:00
git fetch
git reset --hard "$HASH"
git submodule update --init --depth 120 monero
git submodule update --init --depth 120 --recursive monero
2021-02-22 06:51:09 +00:00
cp "/Users/administrator/tor/libevent-2.1.7.dylib" "/Users/administrator/wowlet/src/assets/exec/libevent-2.1.7.dylib"
2020-12-11 13:36:08 +00:00
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"
2021-02-22 06:51:09 +00:00
cd ~/wowlet/build/bin
zip -qr ~/wowlet.zip wowlet.app
else
echo "[+] Error!"
exit 1;
fi