-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreduction.rb
More file actions
50 lines (44 loc) · 1.63 KB
/
reduction.rb
File metadata and controls
50 lines (44 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Reduction < Formula
desc "Stream processing engine"
homepage "https://reduction.dev"
version "0.0.7"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/reduction-dev/reduction/releases/download/v0.0.7/reduction_0.0.7_darwin_amd64"
sha256 "7fe9cae589388b3c00004b0b334109816c76dd3c7eea4a7e3217561ab2fd3a71"
def install
bin.install "reduction_0.0.7_darwin_amd64" => "reduction"
end
end
if Hardware::CPU.arm?
url "https://github.com/reduction-dev/reduction/releases/download/v0.0.7/reduction_0.0.7_darwin_arm64"
sha256 "38e70c5ada408ede79b24bf1ea22be23822b120ff28060b8bcec6a5be960471a"
def install
bin.install "reduction_0.0.7_darwin_arm64" => "reduction"
end
end
end
on_linux do
if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
url "https://github.com/reduction-dev/reduction/releases/download/v0.0.7/reduction_0.0.7_linux_amd64"
sha256 "4a0dd964137208f04a6d96815151d209928f707a7492b11e87980bf5e64c6ff6"
def install
bin.install "reduction_0.0.7_linux_amd64" => "reduction"
end
end
if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
url "https://github.com/reduction-dev/reduction/releases/download/v0.0.7/reduction_0.0.7_linux_arm64"
sha256 "48cf92542e515f22f59a0702a66ee4f9b3c5326a25d7488a8cf51d9fe2251ee4"
def install
bin.install "reduction_0.0.7_linux_arm64" => "reduction"
end
end
end
test do
system "#{bin}/reduction version"
end
end