Skip to content

Commit d582cd5

Browse files
committed
Adds brew Formula template
1 parent 0576ed4 commit d582cd5

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ buildNumber.properties
5757

5858
out/
5959
.idea/
60+
.env

jreleaser.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
artifacts = [
1515
{ path = "ki-shell/target/ki-archive.zip" }
1616
]
17-
tags = ["cli", "Kotlin", "shell", "interactive"]
17+
tags = ["cli", "kotlin", "shell", "interactive"]
1818

1919
[release.github]
2020
owner = "Kotlin"
@@ -26,7 +26,6 @@
2626
[packagers.brew]
2727
active = "ALWAYS"
2828
formulaName = "Ki"
29-
30-
[packagers.scoop]
31-
active = "ALWAYS"
32-
29+
tap.owner = "JetBrains"
30+
tap.name = "homebrew-utils"
31+
tap.username = "asm0dey"
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)