mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-06-08 23:40:36 +00:00
51 lines
1.6 KiB
Ruby
51 lines
1.6 KiB
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
class Lolcathost < Formula
|
|
desc "Dynamic host management tool for macOS and Linux with TUI"
|
|
homepage "https://github.com/lukaszraczylo/lolcathost"
|
|
version "0.1.5"
|
|
license "MIT"
|
|
|
|
on_macos do
|
|
if Hardware::CPU.intel?
|
|
url "https://github.com/lukaszraczylo/lolcathost/releases/download/v0.1.5/lolcathost-0.1.5-darwin-amd64.tar.gz"
|
|
sha256 "58eeb7c7a804c078a4d698d9515ad423a9998ea9ddca577d8877f0dc8b21159d"
|
|
|
|
def install
|
|
bin.install "lolcathost"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/lukaszraczylo/lolcathost/releases/download/v0.1.5/lolcathost-0.1.5-darwin-arm64.tar.gz"
|
|
sha256 "ecad5d408c4110e79b2c0f0e602429824d34798d1a49aa88c2a3352631d2a99e"
|
|
|
|
def install
|
|
bin.install "lolcathost"
|
|
end
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
|
|
url "https://github.com/lukaszraczylo/lolcathost/releases/download/v0.1.5/lolcathost-0.1.5-linux-amd64.tar.gz"
|
|
sha256 "5baa4e6f75f9b688aac5d7d41afd76667601128bce680b5d2220e222a200fc45"
|
|
def install
|
|
bin.install "lolcathost"
|
|
end
|
|
end
|
|
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
|
url "https://github.com/lukaszraczylo/lolcathost/releases/download/v0.1.5/lolcathost-0.1.5-linux-arm64.tar.gz"
|
|
sha256 "989b8ee8eeadd31c2a6f2d1be582fa8e605ffb7bdfc7105bcd362fe6adc34a43"
|
|
def install
|
|
bin.install "lolcathost"
|
|
end
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/lolcathost", "--version"
|
|
end
|
|
end
|