Repository navigation
Expand file tree
/
Copy pathvfox.rb
More file actions
72 lines (66 loc) · 2.85 KB
/
Copy pathvfox.rb
File metadata and controls
72 lines (66 loc) · 2.85 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
68
69
70
71
72
# 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.1.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/version-fox/vfox/releases/download/v1.1.0/vfox_1.1.0_macos_x86_64.tar.gz"
sha256 "ac4bcda2224a0f8aedf35e3ae22454dc97cf79b69899f43ef6519255a0feb7f6"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
fish_completion.install "completions/vfox.fish"
end
end
if Hardware::CPU.arm?
url "https://github.com/version-fox/vfox/releases/download/v1.1.0/vfox_1.1.0_macos_aarch64.tar.gz"
sha256 "9beb733ad636966c6d410c768407c63ffb350106eb23a8151d6fc80b9e84248e"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
fish_completion.install "completions/vfox.fish"
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.1.0/vfox_1.1.0_linux_x86_64.tar.gz"
sha256 "3b33c3c468b27bc17aecf0d6d3af24fe49fe204972984904a136a47b402a0ee4"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
fish_completion.install "completions/vfox.fish"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/version-fox/vfox/releases/download/v1.1.0/vfox_1.1.0_linux_armv7.tar.gz"
sha256 "8b2ca7048e380ff44effab1ea236eada6ef53e5202ee1f390e0456b59b5f0616"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
fish_completion.install "completions/vfox.fish"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/version-fox/vfox/releases/download/v1.1.0/vfox_1.1.0_linux_aarch64.tar.gz"
sha256 "e702e057dfe588200727dfb3cf786d181b13f015cbcc9e13679a3edcfd07e430"
define_method(:install) do
bin.install "vfox"
bash_completion.install "completions/bash_autocomplete" => "vfox"
zsh_completion.install "completions/zsh_autocomplete" => "_vfox"
fish_completion.install "completions/vfox.fish"
end
end
end
test do
system "#{bin}/vfox version"
end
end