-
Notifications
You must be signed in to change notification settings - Fork 0
/
wukong.rb.template
35 lines (27 loc) · 1.01 KB
/
wukong.rb.template
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 "__VERSION__"
on_macos do
on_arm do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-macOS-arm.tar.gz"
sha256 "__SHA256_MAC_ARM__"
end
on_intel do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-macOS-x86.tar.gz"
sha256 "__SHA256_MAC_X86__"
end
end
on_linux do
url "https://github.com/mindvalley/wukong-cli/releases/download/#{version}/wukong-v#{version}-linux-x86.tar.gz"
sha256 "__SHA256_LINUX_X86__"
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