initial commit

This commit is contained in:
YuanHui
2025-03-11 10:53:34 +08:00
parent f12044f166
commit 149c3f9d9c
6 changed files with 123 additions and 0 deletions

20
Formula/autoadb.rb Normal file
View File

@@ -0,0 +1,20 @@
# autoadb.rb
class Autoadb < Formula
desc "Automatically execute commands when an ADB device is connected"
homepage "https://github.com/rom1v/autoadb" # 请替换为实际的项目仓库地址
url "https://codeload.github.com/rom1v/autoadb/zip/refs/heads/master" # 请替换为实际的项目版本压缩包地址
sha256 "ef8d52e24d906a68c5a7df770fc6d2a13a79827fb55b410b833ae8485e66dd82" # 请替换为实际的压缩包 SHA256 哈希值
version "0.1.0" # 添加版本号
license "Apache-2.0"
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/autoadb"
end
test do
system "#{bin}/autoadb", "--help"
end
end