#!/bin/bash set -euxo pipefail /bin/echo "building darwin bundle" bazel build --config=mactools @net_eagle0_unity_godice//darwin/framework:DarwinGodiceBundle ZIP_LOCATION=$(bazel cquery --config=mactools --output=files @net_eagle0_unity_godice//darwin/framework:DarwinGodiceBundle 2>/dev/null) /usr/bin/unzip -o $ZIP_LOCATION -d src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/ /usr/bin/plutil -convert xml1 src/main/csharp/net/eagle0/clients/unity/eagle0/Assets/Plugins/DarwinGodiceBundle.bundle/Contents/Info.plist /bin/echo "building sparkle plugin" ./scripts/build_sparkle_plugin.sh