fixed make_pkg

This commit is contained in:
veeso
2022-03-15 12:22:43 +01:00
parent 31203d76ce
commit 82e8c84000
+3 -2
View File
@@ -7,12 +7,13 @@ make_pkg() {
if [ -z "$TARGET_DIR" ]; then if [ -z "$TARGET_DIR" ]; then
TARGET_DIR=target/release/ TARGET_DIR=target/release/
fi fi
ROOT_DIR=$(pwd)
cd $TARGET_DIR cd $TARGET_DIR
PKG="termscp-v${VERSION}-${ARCH}-apple-darwin.tar.gz" PKG="termscp-v${VERSION}-${ARCH}-apple-darwin.tar.gz"
tar czf $PKG termscp tar czf $PKG termscp
HASH=$(sha256sum $PKG) HASH=$(sha256sum $PKG)
mkdir -p ../../dist/pkgs/macos/ mkdir -p ${ROOT_DIR}/dist/pkgs/macos/
mv $PKG ../../dist/pkgs/macos/$PKG mv $PKG ${ROOT_DIR}/dist/pkgs/macos/$PKG
cd - cd -
echo "$HASH" echo "$HASH"
} }