-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtti-lw-stack.rb
112 lines (103 loc) · 4.97 KB
/
tti-lw-stack.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class TtiLwStack < Formula
desc "The Things Stack Enterprise for LoRaWAN"
homepage "https://www.thethingsindustries.com"
version "3.33.0"
on_macos do
if Hardware::CPU.arm?
url "https://the-things-enterprise-stack-releases.s3-eu-west-1.amazonaws.com/3.33.0/lorawan-stack_3.33.0_darwin_arm64.tar.gz"
sha256 "9f93406057072d5ccb29f7c310c3da6a709e169917275a1b7fbb7c5e599417a3"
def install
bin.install "tti-lw-cli"
libexec.install %w[tti-lw-stack public]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"tti-lw-stack").write_env_script libexec/"tti-lw-stack", env
bash_completion.install "config/completion/bash/tti-lw-cli"
zsh_completion.install "config/completion/zsh/_tti-lw-cli"
fish_completion.install "config/completion/fish/tti-lw-cli.fish"
bash_completion.install "config/completion/bash/tti-lw-stack"
zsh_completion.install "config/completion/zsh/_tti-lw-stack"
fish_completion.install "config/completion/fish/tti-lw-stack.fish"
end
end
if Hardware::CPU.intel?
url "https://the-things-enterprise-stack-releases.s3-eu-west-1.amazonaws.com/3.33.0/lorawan-stack_3.33.0_darwin_amd64.tar.gz"
sha256 "a5b829451f850695c39437e03b38126c44d3bdc6ed5bd438560512fcd940771f"
def install
bin.install "tti-lw-cli"
libexec.install %w[tti-lw-stack public]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"tti-lw-stack").write_env_script libexec/"tti-lw-stack", env
bash_completion.install "config/completion/bash/tti-lw-cli"
zsh_completion.install "config/completion/zsh/_tti-lw-cli"
fish_completion.install "config/completion/fish/tti-lw-cli.fish"
bash_completion.install "config/completion/bash/tti-lw-stack"
zsh_completion.install "config/completion/zsh/_tti-lw-stack"
fish_completion.install "config/completion/fish/tti-lw-stack.fish"
end
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://the-things-enterprise-stack-releases.s3-eu-west-1.amazonaws.com/3.33.0/lorawan-stack_3.33.0_linux_armv6.tar.gz"
sha256 "7085de058e5f894773573e542343da34958e8af86efd1abdd99b2351e39ae3c1"
def install
bin.install "tti-lw-cli"
libexec.install %w[tti-lw-stack public]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"tti-lw-stack").write_env_script libexec/"tti-lw-stack", env
bash_completion.install "config/completion/bash/tti-lw-cli"
zsh_completion.install "config/completion/zsh/_tti-lw-cli"
fish_completion.install "config/completion/fish/tti-lw-cli.fish"
bash_completion.install "config/completion/bash/tti-lw-stack"
zsh_completion.install "config/completion/zsh/_tti-lw-stack"
fish_completion.install "config/completion/fish/tti-lw-stack.fish"
end
end
if Hardware::CPU.intel?
url "https://the-things-enterprise-stack-releases.s3-eu-west-1.amazonaws.com/3.33.0/lorawan-stack_3.33.0_linux_amd64.tar.gz"
sha256 "463a5cbe14b53f884c96cf57b218872dc9d5f26e18907833a5ec7bbea9bb58ee"
def install
bin.install "tti-lw-cli"
libexec.install %w[tti-lw-stack public]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"tti-lw-stack").write_env_script libexec/"tti-lw-stack", env
bash_completion.install "config/completion/bash/tti-lw-cli"
zsh_completion.install "config/completion/zsh/_tti-lw-cli"
fish_completion.install "config/completion/fish/tti-lw-cli.fish"
bash_completion.install "config/completion/bash/tti-lw-stack"
zsh_completion.install "config/completion/zsh/_tti-lw-stack"
fish_completion.install "config/completion/fish/tti-lw-stack.fish"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://the-things-enterprise-stack-releases.s3-eu-west-1.amazonaws.com/3.33.0/lorawan-stack_3.33.0_linux_arm64.tar.gz"
sha256 "f1135097f7a4922c57f347c57a96c08e08a21dd9f6a61ef162df161ed6d55503"
def install
bin.install "tti-lw-cli"
libexec.install %w[tti-lw-stack public]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"tti-lw-stack").write_env_script libexec/"tti-lw-stack", env
bash_completion.install "config/completion/bash/tti-lw-cli"
zsh_completion.install "config/completion/zsh/_tti-lw-cli"
fish_completion.install "config/completion/fish/tti-lw-cli.fish"
bash_completion.install "config/completion/bash/tti-lw-stack"
zsh_completion.install "config/completion/zsh/_tti-lw-stack"
fish_completion.install "config/completion/fish/tti-lw-stack.fish"
end
end
end
conflicts_with "tti-lw-cli"
end