Skip to content

Trying to add Apple Silicon (M1) releases to my project #1587

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

You must be logged in to vote

Default settings for brew packager require a single matching artifact. In this case there are 2 possibilities,x86_64 and aarch_64, hence why it fails. There are a couple of ways to solve this:

  • if single artifact is desired then you must select which platform, x86_64 or aarch_64. Add <extraProperties><skipBrew>true</skipBrew></extraProperties> to the artifact that should not be chosen. https://jreleaser.org/guide/latest/reference/packagers/homebrew.html#_skip_artifacts
  • switch the brew formula to multi-platform by adding <multiPlatform>true</multiPlatform> to the packager. No additional changes are required.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wimdeblauwe
Comment options

Answer selected by wimdeblauwe
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