META-INF.jreleaser.templates.binary.brew.cask.rb.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{jreleaserCreationStamp}}
{{#brewRequireRelative}}
require_relative "{{.}}"
{{/brewRequireRelative}}
cask "{{brewCaskName}}" do
desc "{{projectDescription}}"
homepage "{{projectLinkHomepage}}"
url "{{distributionUrl}}"{{#brewDownloadStrategy}}, :using => {{.}}{{/brewDownloadStrategy}},
verified: "{{repoHost}}"
version "{{projectVersion}}"
sha256 "{{distributionChecksumSha256}}"
name "{{brewCaskDisplayName}}"
{{#brewCaskHasAppcast}}
appcast {{brewCaskAppcast}}
{{/brewCaskHasAppcast}}
auto_updates true
{{#brewHasLivecheck}}
livecheck do
{{#brewLivecheck}}
{{.}}
{{/brewLivecheck}}
end
{{/brewHasLivecheck}}
{{#brewDependencies}}
depends_on {{.}}
{{/brewDependencies}}
{{#brewCaskHasPkg}}
pkg "{{brewCaskPkg}}"
{{/brewCaskHasPkg}}
{{#brewCaskHasApp}}
app "{{brewCaskApp}}"
{{/brewCaskHasApp}}
{{#brewCaskHasBinary}}
binary "{{distributionArtifactRootEntryName}}/bin/{{distributionExecutableUnix}}"
{{/brewCaskHasBinary}}
{{#brewCaskHasUninstall}}
{{#brewCaskUninstall}}
uninstall {{name}}: [
{{#items}}
"{{.}}",
{{/items}}
]
{{/brewCaskUninstall}}
{{/brewCaskHasUninstall}}
{{#brewCaskHasZap}}
{{#brewCaskZap}}
zap {{name}}: [
{{#items}}
"{{.}}",
{{/items}}
]
{{/brewCaskZap}}
{{/brewCaskHasZap}}
end