-
Notifications
You must be signed in to change notification settings - Fork 6
/
melange.rb
55 lines (47 loc) · 1.58 KB
/
melange.rb
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
51
52
53
54
55
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Melange < Formula
desc "Build apk packages using declarative pipelines"
homepage "https://github.com/chainguard-dev/melange"
version "0.13.0"
on_macos do
on_intel do
url "https://github.com/chainguard-dev/melange/releases/download/v0.13.0/melange_0.13.0_darwin_amd64.tar.gz"
sha256 "e294fc69ba089c61582924a46484b066d6900ae82a9223d9494f939476f7bd0d"
def install
bin.install "melange" => "melange"
end
end
on_arm do
url "https://github.com/chainguard-dev/melange/releases/download/v0.13.0/melange_0.13.0_darwin_arm64.tar.gz"
sha256 "618151414ccbcd7bfb7b6b0949f86ac79311075a1d348f64a4406929d32579a9"
def install
bin.install "melange" => "melange"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/chainguard-dev/melange/releases/download/v0.13.0/melange_0.13.0_linux_amd64.tar.gz"
sha256 "374e758fe60142b6adb883d915018d0d190f3cb76395930abeff0127095e9e39"
def install
bin.install "melange" => "melange"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/chainguard-dev/melange/releases/download/v0.13.0/melange_0.13.0_linux_arm64.tar.gz"
sha256 "4e6a59d138258e8b13ccd7cf29073e169a19098a876e07fae02d4f00e0d750a3"
def install
bin.install "melange" => "melange"
end
end
end
end
test do
system "#{bin}/melange", "version"
end
end