From 5303bd69d0b48b50f8f74a2c39c4a4fe430d4558 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sat, 25 Jun 2022 09:01:00 -0400 Subject: [PATCH] small improvements to full release script --- scripts/full-release.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/full-release.sh b/scripts/full-release.sh index 1bcffc7..1f51704 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -58,16 +58,20 @@ if [[ $SKIP_CRATE_PUBLISH == true ]]; then fi cargo smart-release --update-crates-index --no-changelog "${params[@]}" +echo "Verify that the publish succeeded, and Press any key to continue..." +read -n 1 -s -r + if ! which cross; then echo "cross not found, installing..." cargo install cross fi -cross build --release --target=x86_64-unknown-linux-musl +BUILD_TARGET="x86_64-unknown-linux-musl" +cross build --release "--target=$BUILD_TARGET" ./scripts/package-deb.sh -BIN_PATH="target/x86_64-unknown-linux-musl/release/steamguard-cli" +BIN_PATH="target/$BUILD_TARGET/release/steamguard-cli" RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)" TAGGED_VERSION="$(git tag | grep "^v" | tail -n 1 | tr -d v)" if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then