From 85a1192091b7f37ab7c3712e4100c8b43d587857 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Mon, 23 Dec 2024 06:33:31 -0800 Subject: [PATCH] chore: add zst tarballs --- scripts/build-tarball.sh | 1 + scripts/release.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/build-tarball.sh b/scripts/build-tarball.sh index 96481e9d10..6f5155cc60 100755 --- a/scripts/build-tarball.sh +++ b/scripts/build-tarball.sh @@ -101,5 +101,6 @@ if [[ "$os" == "windows" ]]; then else tar -cJf "$basename.tar.xz" mise tar -czf "$basename.tar.gz" mise + tar -cf --zstd "$basename.tar.zst" mise ls -oh "$basename.tar.xz" fi diff --git a/scripts/release.sh b/scripts/release.sh index 06c28f87f8..075a418fd2 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -26,10 +26,12 @@ platforms=( for platform in "${platforms[@]}"; do cp artifacts/*/"mise-$MISE_VERSION-$platform.tar.gz" "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.gz" cp artifacts/*/"mise-$MISE_VERSION-$platform.tar.xz" "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.xz" + cp artifacts/*/"mise-$MISE_VERSION-$platform.tar.zst" "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.zst" zipsign sign tar "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.gz" ~/.zipsign/mise.priv zipsign verify tar "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.gz" "$BASE_DIR/zipsign.pub" cp "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.gz" "$RELEASE_DIR/mise-latest-$platform.tar.gz" cp "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.xz" "$RELEASE_DIR/mise-latest-$platform.tar.xz" + cp "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.zst" "$RELEASE_DIR/mise-latest-$platform.tar.zst" tar -xvzf "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform.tar.gz" cp -v mise/bin/mise "$RELEASE_DIR/mise-latest-$platform" cp -v mise/bin/mise "$RELEASE_DIR/$MISE_VERSION/mise-$MISE_VERSION-$platform"