-
Notifications
You must be signed in to change notification settings - Fork 1
/
hydra.rb
60 lines (51 loc) · 1.75 KB
/
hydra.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
56
57
58
59
60
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Hydra < Formula
desc "The Ory OAuth2 and OpenID Connect Platform (Ory Hydra)"
homepage "https://www.ory.sh"
version "2.2.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/ory/hydra/releases/download/v2.2.0/hydra_2.2.0-macOS_sqlite_arm64.tar.gz"
sha256 "89732ad1494c57ea39348f62dc5ef5c48de129cd205b17cb12bb67ad27094bb7"
def install
bin.install "hydra"
end
end
if Hardware::CPU.intel?
url "https://github.com/ory/hydra/releases/download/v2.2.0/hydra_2.2.0-macOS_sqlite_64bit.tar.gz"
sha256 "3d40ca8e99e2a6d840130928d5e0245212dba0eea9c26a0d7186ebb4382e673d"
def install
bin.install "hydra"
end
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/ory/hydra/releases/download/v2.2.0/hydra_2.2.0-linux_sqlite_armv6.tar.gz"
sha256 "871761a695e67cdd338970c16b7a6d55a66cfa78190a1636be36f6343038e7c7"
def install
bin.install "hydra"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/ory/hydra/releases/download/v2.2.0/hydra_2.2.0-linux_sqlite_arm64.tar.gz"
sha256 "c499ffdaae0f2ab85eff0567214734515b741a393bef89115c16018f4dc0560d"
def install
bin.install "hydra"
end
end
if Hardware::CPU.intel?
url "https://github.com/ory/hydra/releases/download/v2.2.0/hydra_2.2.0-linux_sqlite_64bit.tar.gz"
sha256 "0fe0539fa452496ac5d98b558f93eb2dbb4cf43733da0b09f8f2bdb4445fc31e"
def install
bin.install "hydra"
end
end
end
test do
system "#{bin}/hydra version"
end
end