-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkratos.rb
66 lines (57 loc) · 1.8 KB
/
kratos.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
61
62
63
64
65
66
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Kratos < Formula
desc "The Ory Identity Platform (Ory Kratos)"
homepage "https://www.ory.sh"
version "1.3.1"
license "Apache-2.0"
on_macos do
on_intel do
url "https://github.com/ory/kratos/releases/download/v1.3.1/kratos_1.3.1-macOS_sqlite_64bit.tar.gz"
sha256 "35ec2ae2423aec8ed6753f1eb53ebc29927e2879838fdf97028592169b0a4ee6"
def install
bin.install "kratos"
end
end
on_arm do
url "https://github.com/ory/kratos/releases/download/v1.3.1/kratos_1.3.1-macOS_sqlite_arm64.tar.gz"
sha256 "bdf4a3898ef41a230d6482d600adaa6f179ae52b339c9bdf36f036526944c617"
def install
bin.install "kratos"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/kratos/releases/download/v1.3.1/kratos_1.3.1-linux_sqlite_64bit.tar.gz"
sha256 "0a69afcc94900f0960b98564164a846a41a6c619a58b288536bcb5f27e45c19f"
def install
bin.install "kratos"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/ory/kratos/releases/download/v1.3.1/kratos_1.3.1-linux_sqlite_armv6.tar.gz"
sha256 "d9500e9729421a5a3187db1feff7ea8fe905f57cf89771fc3380e7b78a6b5758"
def install
bin.install "kratos"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/ory/kratos/releases/download/v1.3.1/kratos_1.3.1-linux_sqlite_arm64.tar.gz"
sha256 "433cddfec0ab42ec14f182fedc1625b1842759d79c32ca08bf696dcc3edc1d1c"
def install
bin.install "kratos"
end
end
end
end
test do
system "#{bin}/kratos version"
end
end