2019-10-07 08:29:38 +00:00
|
|
|
class ArduinoCli < Formula
|
|
|
|
desc "Arduino command-line interface"
|
|
|
|
homepage "https://github.com/arduino/arduino-cli"
|
|
|
|
url "https://github.com/arduino/arduino-cli/archive/0.5.0.tar.gz"
|
|
|
|
sha256 "17832841c36a46a8cdf1f03c29843ab805721a11df6f5f1bdd82e1df43304717"
|
|
|
|
|
2019-10-07 08:36:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "72c5f419d5c90eec86c00cd725219413ba20f8eadccfafc65fc5eb39d84c5c75" => :catalina
|
|
|
|
sha256 "cdcab9bbfeed3e305f1238e89daab615cab346e7ba40c7c40e2636f8baf9c5d0" => :mojave
|
|
|
|
sha256 "d30a97bb9f425ae34858b5cb79f9cedebf132eaa25f9044f5c159bbc5c4778e6" => :high_sierra
|
|
|
|
end
|
|
|
|
|
2019-10-07 08:29:38 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "go", "build", "-o", bin/"arduino-cli"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/arduino-cli", "sketch", "new", "test_sketch"
|
|
|
|
assert File.directory?("#{testpath}/Documents/Arduino/test_sketch")
|
|
|
|
end
|
|
|
|
end
|