forked from nextdns/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextdns.rb
48 lines (43 loc) · 1.67 KB
/
nextdns.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Nextdns < Formula
desc "NextDNS DNS/53 to DoH Proxy"
homepage "https://nextdns.io"
version "1.37.7"
bottle :unneeded
on_macos do
if Hardware::CPU.intel?
url "https://github.com/nextdns/nextdns/releases/download/v1.37.7/nextdns_1.37.7_darwin_amd64.tar.gz"
sha256 "87d8320e93584759c6e50ce2616aaaa17cc488c7be441a63a3aa687e7ed3e5f3"
end
if Hardware::CPU.arm?
url "https://github.com/nextdns/nextdns/releases/download/v1.37.7/nextdns_1.37.7_darwin_arm64.tar.gz"
sha256 "900281b65968bce5b7e935063dfa25bddc228fe52710de4c9024831588749cc0"
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/nextdns/nextdns/releases/download/v1.37.7/nextdns_1.37.7_linux_amd64.tar.gz"
sha256 "c87a94f75fdb70216b03fcf4945cac4248778bf80ad4ada828c549cfe27b56fa"
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.37.7/nextdns_1.37.7_linux_arm64.tar.gz"
sha256 "391efaa3fa0a99225b73a0626279ce1ea90623b8ff8b75ac9730a5a0273dd6b5"
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/nextdns/nextdns/releases/download/v1.37.7/nextdns_1.37.7_linux_armv6.tar.gz"
sha256 "bd4d364cfced636b9ec1062fc06005b602e745f2f349ac4c9ca25c32182a1138"
end
end
def install
bin.install "nextdns"
end
def caveats; <<~EOS
To install NextDNS, run the following command:
sudo nextdns install --config <your_conf_id>
Then setup your DNS manually to 127.0.0.1 or by running:
sudo nextdns activate
EOS
end
end