-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwukong.rb
35 lines (27 loc) · 1.13 KB
/
wukong.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
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
class Wukong < Formula
desc "A Swiss-army Knife CLI For Mindvalley Developers"
homepage "https://github.com/mindvalley/wukong-cli"
version "2.1.2"
on_macos do
on_arm do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-macOS-arm.tar.gz"
sha256 "b97406352eb559c1ea06364e42a4899b394cfe489f2595d19887c0703590c146"
end
on_intel do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-macOS-x86.tar.gz"
sha256 "1c644ff6aaf57681060016dd012e20458307e96a1bee639d25767629211f5430"
end
end
on_linux do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-linux-x86.tar.gz"
sha256 "9ae16dfc03997363bd4e142b1ac05de374bb01a2e44b216d81510c26299b1150"
end
def install
bin.install "wukong"
bash_completion.install "completions/bash/wukong.bash"
zsh_completion.install "completions/zsh/_wukong"
fish_completion.install "completions/fish/wukong.fish"
end
end