mirror of https://github.com/pressly/goose.git
build: add Linux ARM64 arch support (#499)
parent
3e0905abac
commit
86f779a959
|
@ -3,13 +3,17 @@
|
||||||
# Ref: https://github.com/denoland/deno_install
|
# Ref: https://github.com/denoland/deno_install
|
||||||
# TODO(everyone): Keep this script simple and easily auditable.
|
# TODO(everyone): Keep this script simple and easily auditable.
|
||||||
|
|
||||||
# TODO(mf): this should work on Linux and macOS. Not intended for Windows.
|
# TODO(mf): this should work on Linux and macOS. Not intended for Windows.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
os=$(uname -s)
|
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
|
||||||
|
if [ "$arch" = "aarch64" ]; then
|
||||||
|
arch="arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
goose_uri="https://github.com/pressly/goose/releases/latest/download/goose_${os}_${arch}"
|
goose_uri="https://github.com/pressly/goose/releases/latest/download/goose_${os}_${arch}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue