Skip to content

Commit dd5c7a7

Browse files
committed
fix(homebrew): install Spring Boot CLI jars into libexec
Signed-off-by: Vinicius Lublanski <vlublima@gmail.com>
1 parent 7878407 commit dd5c7a7

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

cli/spring-boot-cli/src/main/homebrew/spring-boot.rb

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
class SpringBoot < Formula
44
homepage 'https://spring.io/projects/spring-boot'
5-
url '${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz'
6-
version '${version}'
7-
sha256 '${hash}'
5+
url 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/3.5.6/spring-boot-cli-3.5.6-bin.tar.gz'
6+
version '3.5.6'
7+
sha256 '3ac9314100c474ddad1c4ae04a85404383817d6f748820980e26ccbe55393bbe'
88
head 'https://github.com/spring-projects/spring-boot.git', :branch => "main"
99

1010
def install
@@ -16,9 +16,14 @@ def install
1616
root = '.'
1717
end
1818

19-
bin.install Dir["#{root}/bin/spring"]
20-
lib.install Dir["#{root}/lib/spring-boot-cli-*.jar"]
21-
bash_completion.install Dir["#{root}/shell-completion/bash/spring"]
22-
zsh_completion.install Dir["#{root}/shell-completion/zsh/_spring"]
19+
libexec.install Dir["#{root}/*"]
20+
21+
(bin/"spring").write_env_script libexec/"bin/spring", {}
22+
23+
bash_comp = libexec/"shell-completion/bash/spring"
24+
zsh_comp = libexec/"shell-completion/zsh/_spring"
25+
26+
bash_completion.install bash_comp if bash_comp.exist?
27+
zsh_completion.install zsh_comp if zsh_comp.exist?
2328
end
2429
end

0 commit comments

Comments
 (0)