Skip to content

Commit

Permalink
improve amd64 and non-64-bit arm matching
Browse files Browse the repository at this point in the history
  • Loading branch information
actualben committed May 16, 2024
1 parent 8a567b8 commit f5b8430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func init() {

switch runtime.GOARCH {
case `amd64`:
arch_subregex = `(amd64|x86_64)`
arch_subregex = `(amd64|x64|x86_64)`
case `arm64`:
arch_subregex = `(arm64|aarch64)`
case `arm`:
arch_subregex = `arm(v[\d\w]{2,3})?`
arch_subregex = `(arm(v[\d]{,2}|\w{2,3})?|aarch32)`
default:
arch_subregex = runtime.GOARCH
}
Expand Down

0 comments on commit f5b8430

Please sign in to comment.