Skip to content

Commit 0719fd2

Browse files
committed
Makefile task for HomeBrew releases
1 parent dfa6fda commit 0719fd2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/*.xcodeproj
1010
*.tar.gz
1111
*.zip
12+
sha*.txt
1213

1314
## Build generated
1415
build/

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ zip: build
3636

3737
get_sha:
3838
curl -OLs https://github.com/eneko/$(TOOL_NAME)/archive/$(VERSION).tar.gz
39-
shasum -a 256 $(TAR_FILENAME)
39+
shasum -a 256 $(TAR_FILENAME) | cut -f 1 -d " " > sha_$(VERSION).txt
4040
rm $(TAR_FILENAME)
4141

42+
brew_push: get_sha
43+
SHA=$(shell cat sha_$(VERSION).txt); \
44+
brew bump-formula-pr --url=https://github.com/eneko/$(TOOL_NAME)/archive/$(VERSION).tar.gz --sha256=$$SHA
45+

0 commit comments

Comments
 (0)