Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 23, 2023
1 parent 3220ed4 commit 29effae
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/reference/pages/name-templates.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1561,6 +1561,8 @@ The following names are related to xref:reference:packagers/homebrew.adoc[].
| brewDependencies | a map of key/value pairs
| brewHashLivecheck | if custom livecheck instructions were specified
| brewLivecheck | a list of strings for the livecheck block
| brewDownloadStrategy | custom download strategy
| brewRequireRelative | a list of required files, added as `require_relative` statements
| brewCaskName | the cask name
| brewCaskDisplayName | value for the cask's `desc` field
| brewCaskHasPkg | if the cask contains a `.pkg` artifact
Expand Down
59 changes: 59 additions & 0 deletions docs/modules/reference/pages/packagers/homebrew.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ include::partial$packagers/yaml/tap.adoc[]
# icon:dot-circle[]
multiPlatform: false
# Set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#url-download-strategies
# icon:dot-circle[]
downloadStrategy: CurlDownloadStrategy
# Adds `require_relative` statements at the top of the formula template.
# icon:dot-circle[]
requireRelative:
- custom_download_strategy
# Customize the livecheck block.
# Default is empty.
# icon:dot-circle[] icon:file-alt[]
Expand Down Expand Up @@ -172,6 +183,16 @@ include::partial$packagers/toml/tap.adoc[]
# icon:dot-circle[]
multiPlatform = false
# Set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#url-download-strategies
# icon:dot-circle[]
downloadStrategy = "CurlDownloadStrategy"
# Adds `require_relative` statements at the top of the formula template.
# icon:dot-circle[]
requireRelative = ["custom_download_strategy"]
# Customize the livecheck block.
# Default is empty.
# icon:dot-circle[] icon:file-alt[]
Expand Down Expand Up @@ -266,6 +287,18 @@ include::partial$packagers/json/tap.adoc[]
// icon:dot-circle[]
"multiPlatform": false,
// Set a custom download strategy. Note that you'll need
// to implement the strategy and add it to your tap repository.
// Example: https://docs.brew.sh/Formula-Cookbook#url-download-strategies
// icon:dot-circle[]
"downloadStrategy": "CurlDownloadStrategy",
// Adds `require_relative` statements at the top of the formula template.
// icon:dot-circle[]
"requireRelative": [
"custom_download_strategy"
],
// Customize the livecheck block.
// Default is empty.
// icon:dot-circle[] icon:file-alt[]
Expand Down Expand Up @@ -379,6 +412,22 @@ include::partial$packagers/maven/tap.adoc[]
-->
<multiPlatform>false</multiPlatform>
<!--
Set a custom download strategy. Note that you'll need
to implement the strategy and add it to your tap repository.
Example: https://docs.brew.sh/Formula-Cookbook#url-download-strategies
icon:dot-circle[]
-->
<downloadStrategy>CurlDownloadStrategy</downloadStrategy>
<!--
Adds `require_relative` statements at the top of the formula template.
icon:dot-circle[]
-->
<requireRelative>
<require>custom_download_strategy</require>
</requireRelative>
<!--
Customize the livecheck block.
Default is empty.
Expand Down Expand Up @@ -516,6 +565,16 @@ include::partial$packagers/gradle/tap.adoc[]
// icon:dot-circle[]
multiPlatform = false
// Set a custom download strategy. Note that you'll need
// to implement the strategy and add it to your tap repository.
// Example: https://docs.brew.sh/Formula-Cookbook#url-download-strategies
// icon:dot-circle[]
downloadStrategy = 'CurlDownloadStrategy'
// Adds `require_relative` statements at the top of the formula template.
// icon:dot-circle[]
requireRelative = ['custom_download_strategy']
// Customize the livecheck block.
// Default is empty.
// icon:dot-circle[] icon:file-alt[]
Expand Down

0 comments on commit 29effae

Please sign in to comment.