Skip to content

Commit 7b7cfbd

Browse files
authored
Update to use official ARM build (#3)
2 parents e6bd426 + ce3d7f6 commit 7b7cfbd

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

devcontainer-feature.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,21 @@
99
"proposals": [
1010
"latest",
1111
"none",
12-
"1.27.0",
12+
"1.41.0",
13+
"1.40.5",
14+
"1.39.4",
15+
"1.38.5",
16+
"1.37.2",
17+
"1.36.4",
18+
"1.35.3",
19+
"1.34.3",
20+
"1.33.4",
21+
"1.32.5",
22+
"1.31.3",
23+
"1.30.3",
24+
"1.29.4",
25+
"1.28.3",
26+
"1.27.2",
1327
"1.26.2",
1428
"1.25.4",
1529
"1.24.3"

install.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ check_packages curl unzip ca-certificates
2121
echo "Activating feature 'deno'"
2222

2323
TARGET_DENO_VERSION=${VERSION:-"latest"}
24+
MIN_ARM_SUPPORT_VERSION="1.41.0"
25+
COMPARE_MIN_VERSION=$(echo -e "${TARGET_DENO_VERSION}\n${MIN_ARM_SUPPORT_VERSION}" | sort -V | head -n1)
2426

25-
if [ "${TARGET_DENO_VERSION}" = "latest" ] || "${TARGET_DENO_VERSION}" = "none";
27+
if [ "${TARGET_DENO_VERSION}" = "latest" ] || [ "${TARGET_DENO_VERSION}" = "none" ];
2628
then
27-
curl -fsSL https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | DENO_INSTALL=/usr/local sh
29+
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh
30+
elif [ "${TARGET_DENO_VERSION}" = "${MIN_ARM_SUPPORT_VERSION}" ] || [ "${COMPARE_MIN_VERSION}" = "${MIN_ARM_SUPPORT_VERSION}" ];
31+
then
32+
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh -s "v${TARGET_DENO_VERSION}"
2833
else
2934
curl -fsSL https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | DENO_INSTALL=/usr/local sh -s "v${TARGET_DENO_VERSION}"
3035
fi

0 commit comments

Comments
 (0)