diff --git a/devcontainer-feature.json b/devcontainer-feature.json index c0434f8..b0890d1 100644 --- a/devcontainer-feature.json +++ b/devcontainer-feature.json @@ -9,7 +9,21 @@ "proposals": [ "latest", "none", - "1.27.0", + "1.41.0", + "1.40.5", + "1.39.4", + "1.38.5", + "1.37.2", + "1.36.4", + "1.35.3", + "1.34.3", + "1.33.4", + "1.32.5", + "1.31.3", + "1.30.3", + "1.29.4", + "1.28.3", + "1.27.2", "1.26.2", "1.25.4", "1.24.3" diff --git a/install.sh b/install.sh index e453205..de8a893 100644 --- a/install.sh +++ b/install.sh @@ -21,10 +21,15 @@ check_packages curl unzip ca-certificates echo "Activating feature 'deno'" TARGET_DENO_VERSION=${VERSION:-"latest"} +MIN_ARM_SUPPORT_VERSION="1.41.0" +COMPARE_MIN_VERSION=$(echo -e "${TARGET_DENO_VERSION}\n${MIN_ARM_SUPPORT_VERSION}" | sort -V | head -n1) -if [ "${TARGET_DENO_VERSION}" = "latest" ] || "${TARGET_DENO_VERSION}" = "none"; +if [ "${TARGET_DENO_VERSION}" = "latest" ] || [ "${TARGET_DENO_VERSION}" = "none" ]; then - curl -fsSL https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | DENO_INSTALL=/usr/local sh + curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh +elif [ "${TARGET_DENO_VERSION}" = "${MIN_ARM_SUPPORT_VERSION}" ] || [ "${COMPARE_MIN_VERSION}" = "${MIN_ARM_SUPPORT_VERSION}" ]; +then + curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh -s "v${TARGET_DENO_VERSION}" else curl -fsSL https://gist.githubusercontent.com/LukeChannings/09d53f5c364391042186518c8598b85e/raw/ac8cd8c675b985edd4b3e16df63ffef14d1f0e24/deno_install.sh | DENO_INSTALL=/usr/local sh -s "v${TARGET_DENO_VERSION}" fi