-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvfox.rb
More file actions
67 lines (61 loc) · 2.59 KB
/
vfox.rb
File metadata and controls
67 lines (61 loc) · 2.59 KB
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
62
63
64
65
66
67
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Vfox < Formula
desc "A cross-platform SDK version manager with a simple cli."
homepage "https://github.com/version-fox/vfox"
version "1.0.11"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/version-fox/vfox/releases/download/v1.0.11/vfox_1.0.11_macos_x86_64.tar.gz"
sha256 "8d36b871dc8ea93331fdf21941efbae75ed1737ea7a5f686b89ba550c5f2cb8a"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
end
end
if Hardware::CPU.arm?
url "https://github.com/version-fox/vfox/releases/download/v1.0.11/vfox_1.0.11_macos_aarch64.tar.gz"
sha256 "ff2ecd7b7528c663b27665af4b1bf13cc60b2b4a022884fd5ea7c3db5618c6ee"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/version-fox/vfox/releases/download/v1.0.11/vfox_1.0.11_linux_x86_64.tar.gz"
sha256 "c012c9f35f2b2954d65ab7a5cb938c3a21e25fb726573172d4faaa7b615a50cc"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/version-fox/vfox/releases/download/v1.0.11/vfox_1.0.11_linux_armv7.tar.gz"
sha256 "7ffed56991f06fb29ff335c099d6ee2423acbb4c03486bfe0efd2ff7e1ab8f3f"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/version-fox/vfox/releases/download/v1.0.11/vfox_1.0.11_linux_aarch64.tar.gz"
sha256 "d8f4745b4d3b05ac1e2b364de51b80d85ee29e26540dc5026417389dfa7be0ac"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
end
end
end
test do
system "#{bin}/vfox version"
end
end