Skip to content

Commit

Permalink
add script to prepare Homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakovlenko committed Jun 7, 2024
1 parent dde6614 commit 2a1b117
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions scripts/homebrew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -e

VERSION_TAG=$(go run cmd/zit/main.go version) # vSEMVER
VERSION=$(echo "$VERSION_TAG" | sed -e "s/^v//g") # SEMVER
FILE="zit-$VERSION.tar.gz"

cd ~/Downloads || exit

curl --fail -L "https://github.com/ayakovlenko/zit/archive/refs/tags/$VERSION_TAG.tar.gz" -o "$FILE"

echo "$FILE"

SUM=$(shasum -a 256 "$FILE" | awk '{ print $1; }')

echo "$SUM"
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -eax

VERSION=$(go run cmd/zit/main.go version)
git tag $VERSION
git push origin $VERSION
git tag "$VERSION"
git push origin "$VERSION"

0 comments on commit 2a1b117

Please sign in to comment.