-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI action to publish wave-cli to homebrew (#37)
* formula template added * brew config added in jreleaser.yml * refactored brew formula * refactored brew formula * add zip artifacts for mac * changed type from NATIVE_IMAGE to FLAT_BINARY * minor change * minor change * minor change * token changed * formula updated * formula updated * formula updated * formula templated finalised * minor changes * minor changes * Formula name changed to wave-cli * minor change * template dir renamed to wave-cli
- Loading branch information
1 parent
d70972e
commit a25adbd
Showing
3 changed files
with
77 additions
and
11 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
38 changes: 38 additions & 0 deletions
38
app/src/jreleaser/distributions/wave-cli/brew/formula.rb.tpl
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,38 @@ | ||
# {{jreleaserCreationStamp}} | ||
class {{brewFormulaName}} < Formula | ||
desc "{{projectDescription}}" | ||
homepage "{{projectLinkHomepage}}" | ||
version "{{projectVersion}}" | ||
license "{{projectLicense}}" | ||
|
||
if OS.mac? && Hardware::CPU.arm? | ||
url "https://github.com/seqeralabs/wave-cli/releases/download/v{{projectEffectiveVersion}}/wave-{{projectEffectiveVersion}}-macos-arm64.zip" | ||
sha256 "{{distributionChecksumSha256}}" | ||
|
||
def install | ||
bin.install "wave" => "wave" | ||
end | ||
end | ||
|
||
if OS.mac? && Hardware::CPU.intel? | ||
url "https://github.com/seqeralabs/wave-cli/releases/download/v{{projectEffectiveVersion}}/wave-{{projectEffectiveVersion}}-macos-x86_64.zip" | ||
sha256 "{{distributionChecksumSha256}}" | ||
|
||
def install | ||
bin.install "wave" => "wave" | ||
end | ||
end | ||
|
||
test do | ||
output = shell_output("#{bin}/wave --version") | ||
assert_match "{{projectVersion}}", output | ||
end | ||
|
||
def caveats | ||
<<~EOS | ||
wave cli has been installed! | ||
To run it, type: | ||
wave --help | ||
EOS | ||
end | ||
end |
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