Skip to content

Commit

Permalink
fix(build): use aarch64 suffix for linux arm64, add darwin arm64 (#267)
Browse files Browse the repository at this point in the history
* fix: use aarch64 suffix instead of arm64

On Linux, arm64 architecture is commonly referred to as aarch64. The
`uname -m` command returns the latter. As a result, the command
suggested in the README to install dockerize doesn't work on this
architecture.

This commit fixes this by renaming the release artifact from
"linux-arm64" to "linux-aarch64". Thus, "$(uname -s)-$(uname -m)" will
return the expected artifact name.

See also: https://stackoverflow.com/a/45125525

* feat: add support for darwin/arm64 platform
  • Loading branch information
gilbsgilbs committed Feb 28, 2023
1 parent 362232e commit cff7133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ linux-x86_64 linux amd64
linux-386 linux 386
linux-armel linux arm 5
linux-armhf linux arm 6
linux-arm64 linux arm64
linux-aarch64 linux arm64
linux-ppc64le linux ppc64le
darwin-x86_64 darwin amd64
darwin-arm64 darwin arm64
DIST

ghr -u "$GH_USER" -r "$GH_REPO" -replace "$TAG" "$DIST_DIR"

0 comments on commit cff7133

Please sign in to comment.