Skip to content

Commit

Permalink
Add Linux arm64 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Mar 1, 2024
1 parent eb90458 commit 820c47b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,15 @@ export DVM_VERSION="v0.8.2"
return
fi

if [ "$DVM_TARGET_OS" = "Linux" ] &&
[ "$DVM_TARGET_ARCH" = 'arm64' ] &&
dvm_compare_version "$target_version" "v1.40.3"
then
dvm_print_error "Linux with ARM64 chips (aarch64-linux) support deno v1.40.3 and above versions only."
dvm_failure
return
fi

if dvm_compare_version "$target_version" "v0.36.0"
then
DVM_TARGET_TYPE="gz"
Expand Down Expand Up @@ -1055,6 +1064,9 @@ export DVM_VERSION="v0.8.2"
"Linux:x86_64:zip")
DVM_TARGET_NAME='deno-x86_64-unknown-linux-gnu.zip'
;;
"Linux:arm64:zip")
DVM_TARGET_NAME='deno-aarch64-unknown-linux-gnu.zip'
;;
*"NT"*":x86_64:zip")
DVM_TARGET_NAME='deno-x86_64-pc-windows-msvc.zip'
;;
Expand Down

0 comments on commit 820c47b

Please sign in to comment.