Skip to content

Snap name different from distribution name? #588

Answered by aalmiray
mthmulders asked this question in Q&A
Discussion options

You must be logged in to vote

If the only change from the standard template is {{distributionName}} then you have two options:

  • create a second distribution with the correct name (a bit of a code smell if it's just for the distribution name, I should fix this).
  • create your own template using jreleaser template -p snap -b . -d <currentDistributionName> then edit the generated file in src/jreleaser/teemplates.

Homebrew allows the formula name to differ from the distribution name, I think Snap should have a similar setting, defaulting to distributionName if left unspecified.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mthmulders
Comment options

@mthmulders
Comment options

@aalmiray
Comment options

@mthmulders
Comment options

@aalmiray
Comment options

Answer selected by mthmulders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants