Skip to content

Commit

Permalink
feat: add formula maa-cli (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc authored Sep 10, 2023
1 parent fb74478 commit 3425a4a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Formula/maa-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class MaaCli < Formula
desc "Command-line tool for MAA (MaaAssistantArknights)"
homepage "https://github.com/MaaAssistantArknights/maa-cli"
url "https://github.com/MaaAssistantArknights/maa-cli/archive/refs/tags/v0.3.8.tar.gz"
sha256 "d107e426a599cd489c273aabf0dae50f3dbfdb050275b11fb05627d2e4998a5b"
license "AGPL-3.0-or-later"

depends_on "rust" => :build

def install
system "cargo", "install", "--path", "maa-cli", "--locked", "--root", prefix, "--bin", "maa"
fish_completion.install "maa-cli/share/fish/vendor_completions.d/maa.fish"
end

test do
assert_match "maa #{version}", shell_output("#{bin}/maa --version")
end
end

0 comments on commit 3425a4a

Please sign in to comment.