Skip to content

Commit

Permalink
Merge pull request #45 from k1LoW/support-linux-arm64
Browse files Browse the repository at this point in the history
Support linux aarch64
  • Loading branch information
k1LoW authored Jul 8, 2023
2 parents 69a5147 + 9474242 commit c456c17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ builds:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/k1LoW/gh-grep.version={{.Version}} -X github.com/k1LoW/gh-grep.commit={{.FullCommit}} -X github.com/k1LoW/gh-grep.date={{.Date}} -X github.com/k1LoW/gh-grep/version.Version={{.Version}}
-
Expand Down
2 changes: 2 additions & 0 deletions gh-grep
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ elif uname -a | grep Darwin > /dev/null; then
elif uname -a | grep Linux > /dev/null; then
if [ "${arch}" = "x86_64" ]; then
exe="gh-grep_${ver}_linux_amd64"
elif [ "${arch}" = "arm64" ] || [ "${arch}" = "aarch64" ]; then
exe="gh-grep_${ver}_linux_arm64"
fi
fi

Expand Down

0 comments on commit c456c17

Please sign in to comment.