-
Notifications
You must be signed in to change notification settings - Fork 0
/
spok.rb
60 lines (49 loc) · 1.88 KB
/
spok.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 Spok < Formula
desc "Sans Password or Key (SPoK) - An easier way for remote server authentication."
homepage "https://github.com/devlup-labs/spok"
version "0.1.1"
license "MIT"
on_macos do
on_intel do
url "https://github.com/devlup-labs/spok/releases/download/0.1.1/spok_0.1.1_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "dd0e485a1ee1204fc9a4ca78af755e045ae712e69699ecbac7de2e5e06143b7d"
def install
bin.install "bin/spok"
(etc/"spok"/"scripts").install "scripts/configure-spok-server.sh"
end
end
on_arm do
url "https://github.com/devlup-labs/spok/releases/download/0.1.1/spok_0.1.1_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "3d463efd19119634c6e894c206f604b94cb1e0b7bc7952b2a9c76109a4ab38ad"
def install
bin.install "bin/spok"
(etc/"spok"/"scripts").install "scripts/configure-spok-server.sh"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/devlup-labs/spok/releases/download/0.1.1/spok_0.1.1_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "9e0812f2144ad6586fb70661c84077bfe46939e5b45d492e1712de9cab399824"
def install
bin.install "bin/spok"
(etc/"spok"/"scripts").install "scripts/configure-spok-server.sh"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/devlup-labs/spok/releases/download/0.1.1/spok_0.1.1_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "b912c83607b513ea35ab103abbd8c2e780b5d011c14d25eaed863a73692bef57"
def install
bin.install "bin/spok"
(etc/"spok"/"scripts").install "scripts/configure-spok-server.sh"
end
end
end
end
end