-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brew formula update for enapter-cli version v3.0.0-alpha
- Loading branch information
1 parent
819b3bd
commit e1c8e7f
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# typed: false | ||
Check failure on line 1 in Formula/[email protected] GitHub Actions / test-bot (macos-latest)
|
||
# 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 |