Skip to content

Commit a41f57d

Browse files
committed
Updates brew templates o be compatible with our current tap
1 parent 0c4a4bc commit a41f57d

File tree

4 files changed

+50
-7
lines changed

4 files changed

+50
-7
lines changed

jreleaser.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
java.version = "8"
1111

1212
[distributions.ki]
13-
executable = "ki.sh"
13+
executable = "ki"
1414
artifacts = [
1515
{ path = "ki-shell/target/ki-archive.zip" }
1616
]
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
class {{brewFormulaName}} < Formula
2-
desc "ki shell"
2+
desc "Extendable Kotlin interactive shell with code completion, and other features"
33
homepage "http://github.com/Kotlin/kotlin-interactive-shell"
4-
version "{{projectVersion}}"
54
url "{{distributionUrl}}"
5+
version "{{projectVersion}}"
66
sha256 "{{distributionSha256}}"
7-
license "Apache-2"
7+
license "Apache-2.0"
88

99
bottle :unneeded
1010

1111
depends_on "openjdk@8"
1212

1313
def install
14-
libexec.install Dir["*"]
14+
libexec.install "bin", "lib"
1515
rm Dir["#{libexec}/bin/*.bat"]
16-
bin.install_symlink "#{libexec}/bin/*"
16+
bin.install Dir["#{libexec}/bin/*"]
17+
bin.env_script_all_files libexec/"bin", Language::Java.overridable_java_home_env
1718
end
1819

1920
test do
20-
output = shell_output("#{bin}/bin/ki.sh <<< '' 2>&1 | grep ki-shell")
21+
output = shell_output("#{bin}/ki.sh <<< '' 2>&1 | grep ki-shell")
2122
assert_match "ki-shell 0.3/1.4.32", output
2223
end
2324
end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2019 JetBrains
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Reposistory for Homebrew Formulas (http://brew.sh/)
2+
3+
## Usage
4+
5+
```
6+
brew tap jetbrains/utils
7+
```
8+
9+
For example, to install http://github.com/JetBrains/bunches
10+
11+
```
12+
brew install bunches
13+
```
14+
15+
## Writing Formulas
16+
17+
http://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md
18+
19+
Package java app: http://www.sourceclear.com/blog/Distribute-Your-Java-App-Via-Brew/
20+

0 commit comments

Comments
 (0)