Skip to content

Commit e29513d

Browse files
asm0deykhud
authored andcommitted
Adds brew Formula template
1 parent cdf5666 commit e29513d

File tree

1 file changed

+23
-0
lines changed
  • src/jreleaser/distributions/ki/brew/Formula

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class {{brewFormulaName}} < Formula
2+
desc "ki shell"
3+
homepage "http://github.com/Kotlin/kotlin-interactive-shell"
4+
version "{{projectVersion}}"
5+
url "{{distributionUrl}}"
6+
sha256 "{{distributionSha256}}"
7+
license "Apache-2"
8+
9+
bottle :unneeded
10+
11+
depends_on "openjdk@8"
12+
13+
def install
14+
libexec.install Dir["*"]
15+
rm Dir["#{libexec}/bin/*.bat"]
16+
bin.install_symlink "#{libexec}/bin/*"
17+
end
18+
19+
test do
20+
output = shell_output("#{bin}/bin/ki.sh <<< '' 2>&1 | grep ki-shell")
21+
assert_match "ki-shell 0.3/1.4.21", output
22+
end
23+
end

0 commit comments

Comments
 (0)