Skip to content

Commit 2e8a40f

Browse files
committed
add riff homebrew tap
1 parent 6619404 commit 2e8a40f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

riff.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
require "FileUtils"
2+
3+
class Riff < Formula
4+
homepage "https://github.com/projectriff/riff"
5+
6+
v = "v0.1.0" # CI Managed
7+
url "https://github.com/projectriff/riff/releases/download/#{v}/riff-darwin-amd64.tgz"
8+
version v
9+
sha256 "58d522f32e79c509f4b42edb7d0e80ef0bade5592520df06b93c8f91731e780a" # CI Managed
10+
11+
def gunzip(filename)
12+
command = "gunzip --force #{filename}"
13+
success = system(command)
14+
15+
success && $?.exitstatus == 0
16+
end
17+
18+
def install
19+
# FileUtils.mv("riff-darwin-amd64", "riff")
20+
bin.install "riff"
21+
end
22+
23+
test do
24+
system "#{bin}/riff", "version"
25+
end
26+
end
27+

0 commit comments

Comments
 (0)