diff --git a/Formula/slr.rb b/Formula/slr.rb new file mode 100644 index 0000000..f3d7a87 --- /dev/null +++ b/Formula/slr.rb @@ -0,0 +1,57 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class Slr < Formula + desc "slr" + homepage "https://github.com/sikalabs/slr" + version "0.1.0" + + on_macos do + if Hardware::CPU.arm? + url "https://github.com/sikalabs/slr/releases/download/v0.1.0/slr_v0.1.0_darwin_arm64.tar.gz" + sha256 "991de83249048b933374db82cfa101a78c90b4ca8d170327b7d83ca4bf9407e7" + + def install + bin.install "slr" + end + end + if Hardware::CPU.intel? + url "https://github.com/sikalabs/slr/releases/download/v0.1.0/slr_v0.1.0_darwin_amd64.tar.gz" + sha256 "8ba9078ec20340f5aff73f297651ca355b719b9ae7aea6c5fd0798b0e0ec7262" + + def install + bin.install "slr" + end + end + end + + on_linux do + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/sikalabs/slr/releases/download/v0.1.0/slr_v0.1.0_linux_arm64.tar.gz" + sha256 "09e71efc8674d5099765c6342e43040d7987700a7db107215134245c6232a2d2" + + def install + bin.install "slr" + end + end + if Hardware::CPU.intel? + url "https://github.com/sikalabs/slr/releases/download/v0.1.0/slr_v0.1.0_linux_amd64.tar.gz" + sha256 "cffa2fcb415713e6df836b7ce0a4635e0640724510ceb941880644c09e3a95d6" + + def install + bin.install "slr" + end + end + end + + def caveats + <<~EOS + How to use this binary: https://github.com/sikalabs/slr + EOS + end + + test do + system "#{bin}/slr version" + end +end