From f462ef98a27380564844e254622279cdbd54878b Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Sat, 21 Oct 2023 19:42:16 -0700 Subject: [PATCH] Brew formula update for slack-proxy version v0.1.1-pre1 --- Formula/slack-proxy.rb | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/slack-proxy.rb diff --git a/Formula/slack-proxy.rb b/Formula/slack-proxy.rb new file mode 100644 index 0000000..6fd72d7 --- /dev/null +++ b/Formula/slack-proxy.rb @@ -0,0 +1,52 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class SlackProxy < Formula + desc "Slack proxy" + homepage "https://fortio.org/" + version "0.1.1-pre1" + license "Apache-2.0" + + on_macos do + if Hardware::CPU.arm? + url "https://github.com/fortio/slack-proxy/releases/download/v0.1.1-pre1/slack-proxy_0.1.1-pre1_darwin_arm64.tar.gz" + sha256 "646a0fb55328e1916ee6af2bc462ba28236f0a2a68551e7ef8649513d65e3dd9" + + def install + bin.install "slack-proxy" + end + end + if Hardware::CPU.intel? + url "https://github.com/fortio/slack-proxy/releases/download/v0.1.1-pre1/slack-proxy_0.1.1-pre1_darwin_amd64.tar.gz" + sha256 "ef1f0ed18ed75f46e82b67ba866858c2b9c4308dd7b5a7f9a99b5c27fcbfa4f7" + + def install + bin.install "slack-proxy" + end + end + end + + on_linux do + if Hardware::CPU.intel? + url "https://github.com/fortio/slack-proxy/releases/download/v0.1.1-pre1/slack-proxy_0.1.1-pre1_linux_amd64.tar.gz" + sha256 "46cc7ed06e8dea0d7ecd7c11216f43768c6b55d59036e1c388759276de04c1b6" + + def install + bin.install "slack-proxy" + end + end + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/fortio/slack-proxy/releases/download/v0.1.1-pre1/slack-proxy_0.1.1-pre1_linux_arm64.tar.gz" + sha256 "4d48eb4009cad85eadb5f6e720c8beff30f9a0af774dec5028eb6ae3d6b22c1f" + + def install + bin.install "slack-proxy" + end + end + end + + test do + assert_match version.to_s, shell_output("#{bin}/slack-proxy -version") + end +end