Skip to content

Commit

Permalink
add suport for linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Nov 15, 2024
1 parent d1ea1b5 commit 47c4f37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit 47c4f37

Please sign in to comment.