mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[brew] simplify single_jar executable script. Resolves #302
This commit is contained in:
@@ -20,12 +20,8 @@ class {{brewFormulaName}} < Formula
|
||||
{{/brewDependencies}}
|
||||
|
||||
def install
|
||||
File.open("{{distributionExecutable}}", "w") do |f|
|
||||
f << "#!/bin/bash\n"
|
||||
f << "java -jar $JAVA_OPTS #{prefix}/{{artifactFileName}} \"$@\"\n"
|
||||
end
|
||||
prefix.install "{{artifactFileName}}"
|
||||
bin.install "{{distributionExecutable}}"
|
||||
libexec.install "{{artifactFileName}}"
|
||||
bin.write_jar_script libexec/"{{artifactFileName}}", "{{distributionExecutable}}"
|
||||
end
|
||||
|
||||
test do
|
||||
|
||||
Reference in New Issue
Block a user