-
Notifications
You must be signed in to change notification settings - Fork 0
/
fvpn.rb
61 lines (51 loc) · 1.75 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
54
55
56
57
58
59
60
61
# 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.2.3-beta4"
depends_on "wireguard-tools"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/forestvpn/cli/releases/download/v0.2.3-beta4/fvpn_darwin_arm64.tar.gz"
sha256 "00db1da2abe25af67c59dcad6fb2c1290a372e9af18e7fc20d54e007effd3352"
def install
bin.install "fvpn"
end
end
if Hardware::CPU.intel?
url "https://github.com/forestvpn/cli/releases/download/v0.2.3-beta4/fvpn_darwin_amd64.tar.gz"
sha256 "9ec754368a3ef39212bbb9cacf25104e40c7ec5e367133939181b022d56b23c0"
def install
bin.install "fvpn"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/forestvpn/cli/releases/download/v0.2.3-beta4/fvpn_linux_amd64.tar.gz"
sha256 "011eff9231c075a6ae716bc9413ca5624279a57eb2f30eabca3266ae3f30ad27"
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.2.3-beta4/fvpn_linux_arm.tar.gz"
sha256 "a5b347315a0995d4e8fc90a95eedc40b5933d56d414441a0855eeaa37dc7c4f3"
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.2.3-beta4/fvpn_linux_arm64.tar.gz"
sha256 "e02fae7f21075d40eaf2fc0ad6b9cb54b3325cc57decf003ea3e740e485bf26a"
def install
bin.install "fvpn"
end
end
end
test do
system "#{bin}/fvpn --version"
end
end