From 3ab7062e3d3a6200f55f431f7bda5180958ef444 Mon Sep 17 00:00:00 2001 From: Sanath Date: Sun, 21 Feb 2021 13:52:14 +0530 Subject: [PATCH] Changes to display Linux arm64 download link in homepage dropdown . --- index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/index.html b/index.html index 5e2aa15e6..0b32ce858 100644 --- a/index.html +++ b/index.html @@ -34,6 +34,11 @@

The V Programming Language

Linux 6.6MB + + + Linux arm64 + 6.98MB + macOS @@ -78,11 +83,23 @@

The V Programming Language

dlicon.outerHTML = '' dla.href = "https://github.com/vlang/v/releases/latest/download/v_windows.zip" } else if (!os && /Linux/.test(platform)) { + var arch64Archs =['arm64','aarch64','armv8l']; + if(arch64Archs.some(function(arch) { return platform.indexOf(arch)!== -1})){ + document.getElementById('dl_linux_arm64').style.display = 'none' + dlname.innerText = 'Download for Linux arm64' + dlsize.innerText = 'v0.2 - 6.98MB' + dlicon.outerHTML = '' + dla.href = "https://github.com/vlang/v/releases/latest/download/v_linux_arm64.zip" + + } + else + { document.getElementById('dl_linux').style.display = 'none' dlname.innerText = 'Download for Linux' dlsize.innerText = 'v0.2 - 6.6MB' dlicon.outerHTML = '' dla.href = "https://github.com/vlang/v/releases/latest/download/v_linux.zip" + } }