diff --git a/install.sh b/install.sh index 35cd5aa..b28c2a0 100755 --- a/install.sh +++ b/install.sh @@ -17,6 +17,7 @@ else "Darwin x86_64") target="x86_64-apple-darwin" ;; "Darwin arm64") target="aarch64-apple-darwin" ;; "Linux x86_64") target="x86_64-unknown-linux-gnu" ;; + "Linux aarch64") target="aarch64-unknown-linux-gnu.zip" ;; *) echo "Unsupported OS + CPU combination: $(uname -sm)"; exit 1 ;; esac fi diff --git a/src/commands/install.rs b/src/commands/install.rs index 72e470e..173ac6b 100644 --- a/src/commands/install.rs +++ b/src/commands/install.rs @@ -24,8 +24,10 @@ cfg_if! { const ARCHIVE_NAME: &str = "deno-aarch64-apple-darwin.zip"; } else if #[cfg(all(target_os = "macos", target_arch = "x86_64"))] { const ARCHIVE_NAME: &str = "deno-x86_64-apple-darwin.zip"; - } else if #[cfg(target_os = "linux")] { + } else if #[cfg(all(target_os = "linux", target_arch = "x86_64"))] { const ARCHIVE_NAME: &str = "deno-x86_64-unknown-linux-gnu.zip"; + } else if #[cfg(all(target_os = "linux", target_arch = "aarch64"))] { + const ARCHIVE_NAME: &str = "deno-aarch64-unknown-linux-gnu.zip"; } }