-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontentserver.rb
61 lines (52 loc) · 1.63 KB
/
contentserver.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Contentserver < Formula
desc "Serves content tree structures very quickly"
homepage "https://github.com/foomo/contentserver"
version "1.11.2"
on_macos do
on_intel do
url "https://github.com/foomo/contentserver/releases/download/v1.11.2/contentserver_1.11.2_darwin_amd64.tar.gz"
sha256 "75afdf198f0c93458b4d7ee112d486867540bcb769ed1904cc0a44df3c04c2fc"
def install
bin.install "contentserver"
end
end
on_arm do
url "https://github.com/foomo/contentserver/releases/download/v1.11.2/contentserver_1.11.2_darwin_arm64.tar.gz"
sha256 "5a20e24c1364f107b8f9742398a06851e30720e404d6a3797d9d3f6a86e901ed"
def install
bin.install "contentserver"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/contentserver/releases/download/v1.11.2/contentserver_1.11.2_linux_amd64.tar.gz"
sha256 "89f6ac32d7967ceabc4490af9642a7c12b581602165fed4d0eac64b1d8a9264a"
def install
bin.install "contentserver"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/contentserver/releases/download/v1.11.2/contentserver_1.11.2_linux_arm64.tar.gz"
sha256 "a15dea98c56d8f7cda816394c8c52a7123fd8ecb6c2c4e7465eac013e02a84e8"
def install
bin.install "contentserver"
end
end
end
end
def caveats
<<~EOS
sesamy --help
EOS
end
test do
system "#{bin}/contentserver --version"
end
end