-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfvpn.rb
53 lines (44 loc) · 1.46 KB
/
fvpn.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Fvpn < Formula
desc "Forest VPN CLI client for macOS, Linux, and Windows"
homepage "https://github.com/forestvpn/cli"
version "0.3.5"
depends_on "wireguard-tools"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/forestvpn/cli/releases/download/v0.3.5/fvpn_darwin_arm64.tar.gz"
sha256 "deb843f189397a513b269ad850c157388fd5a797f489d83b5bd86e0ee726a739"
def install
bin.install "fvpn"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/forestvpn/cli/releases/download/v0.3.5/fvpn_linux_arm64.tar.gz"
sha256 "a2641eb2b86c54ed3d876f4e7425d5ee79d1d95b8de83888a219f7a480053e26"
def install
bin.install "fvpn"
end
end
if Hardware::CPU.intel?
url "https://github.com/forestvpn/cli/releases/download/v0.3.5/fvpn_linux_amd64.tar.gz"
sha256 "45e363108b0608c03ff1f61f245261e305422fddfb248d043f955bc0442104fd"
def install
bin.install "fvpn"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/forestvpn/cli/releases/download/v0.3.5/fvpn_linux_arm.tar.gz"
sha256 "2ce0b3afe58aa4882b79a8259b0920f9e5110dae477efa197ba394030daede64"
def install
bin.install "fvpn"
end
end
end
test do
system "#{bin}/fvpn --version"
end
end