From e1c8e7fb2f27d57c472f1bd62800be6261521f47 Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Thu, 17 Oct 2024 01:40:42 +0300 Subject: [PATCH] Brew formula update for enapter-cli version v3.0.0-alpha --- Formula/enapter@3.rb | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Formula/enapter@3.rb diff --git a/Formula/enapter@3.rb b/Formula/enapter@3.rb new file mode 100644 index 0000000..df646e8 --- /dev/null +++ b/Formula/enapter@3.rb @@ -0,0 +1,45 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class EnapterAT3 < Formula + desc "Command-line tool for Enapter Energy Management System Toolkit" + homepage "https://github.com/Enapter/enapter-cli" + version "3.0.0-alpha" + + on_macos do + on_intel do + url "https://github.com/enapter/enapter-cli/releases/download/v3.0.0-alpha/enapter-cli-3.0.0-alpha-darwin-amd64.tar.gz" + sha256 "8cdc75dd210ee6184b1d24aad5ecad34ca425e0e945c0d3ce572b244a5f592d2" + + def install + bin.install "enapter" + end + end + on_arm do + url "https://github.com/enapter/enapter-cli/releases/download/v3.0.0-alpha/enapter-cli-3.0.0-alpha-darwin-arm64.tar.gz" + sha256 "533c1700ed39ead96a4925bf8fe734ebc5df30d57769e0724319345b2ceb9b5a" + + def install + bin.install "enapter" + end + end + end + + on_linux do + on_intel do + if Hardware::CPU.is_64_bit? + url "https://github.com/enapter/enapter-cli/releases/download/v3.0.0-alpha/enapter-cli-3.0.0-alpha-linux-amd64.tar.gz" + sha256 "29b2febbc854846a5d682d9f8b908ebdfba02ae3f0a4aa6afad7d6c79318c5ec" + + def install + bin.install "enapter" + end + end + end + end + + test do + assert_match "Enapter CLI #{version}", shell_output("#{bin}/enapter --version") + end +end