Skip to content

Commit

Permalink
Fix arch detection of Linux/aarch64
Browse files Browse the repository at this point in the history
Fix arch detection on Linux/aarch64 (e.g. Asahi Linux on MacBook M*).
From Go point of view, this is arm64.

    $ uname -m
    aarch64

    $ go env GOOS
    linux

    $ go env GOARCH
    arm64

Tested by running directly from source.

Fixes #58

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Feb 21, 2024
1 parent f32a6c9 commit 01c17e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
x86_64) echo "amd64" ;;
amd64) echo "amd64" ;;
arm64) echo "arm64" ;;
aarch64) echo "arm64" ;;
i?86) echo "386" ;;
*)
error "This installer only supports x86_64, i386, amd64 and arm64 architectures. Found $(uname -m)"
error "This installer only supports x86_64, i386, amd64, arm64, and aarch64 architectures. Found $(uname -m)"
return 1;;
esac
}
Expand Down

0 comments on commit 01c17e4

Please sign in to comment.