#!/bin/bash # Build all releases and then package everything set -euo pipefail PROJECT_DIR="$(realpath "$(dirname "$0")/..")" echo "began cleaning" cd $PROJECT_DIR cargo clean if [ -f "${PROJECT_DIR}/pkg.cfg" ]; then source "${PROJECT_DIR}/pkg.cfg" ssh "$WINDOWS_SSH_HOST" "cd "$WINDOWS_SSH_PROJECT_DIR" ; cargo clean" ssh "$MACOS_SSH_HOST" "cd "$MACOS_SSH_PROJECT_DIR" && cargo clean" fi echo "finished cleaning" echo "began releasing" cargo build cargo test cargo build --release cargo test --release "${PROJECT_DIR}/tools/build-release.bash" "${PROJECT_DIR}/tools/package-all.bash" echo "finished releasing"