Issue 654 - Add new installer formats for windows and linux

Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
diff --git a/classes/downloads/eclipseInstaller.php b/classes/downloads/eclipseInstaller.php
index 2a54de5..f3db60c 100644
--- a/classes/downloads/eclipseInstaller.php
+++ b/classes/downloads/eclipseInstaller.php
@@ -329,7 +329,7 @@
       return $download_links;
     }
 
-   $accepted_version = array('x86_64','32bit', 'AArch64');
+   $accepted_version = array('x86_64','32bit', 'AArch64', 'riscv64');
     if (!empty($version) && !in_array($version, $accepted_version)) {
       return array();
     }
@@ -393,6 +393,10 @@
       $this->addlink('Windows', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['win64']['url']), 'x86_64', $data['files']['win64']['jre']);
     }
 
+    if (!empty($data['files']['winaarch64'])) {
+      $this->addlink('Windows', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['winaarch64']['url']), 'AArch64', $data['files']['winaarch64']['jre']);
+    }
+
     if (!empty($data['files']['linux32'])) {
       $this->addlink('Linux', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['linux32']['url']), '32 bit', $data['files']['linux32']['jre']);
     }
@@ -404,6 +408,10 @@
     if (!empty($data['files']['linuxaarch64'])) {
       $this->addlink('Linux', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['linuxaarch64']['url']), "AArch64", $data['files']['linuxaarch64']['jre']);
     }
+
+    if (!empty($data['files']['linuxriscv64'])) {
+      $this->addlink('Linux', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['linuxriscv64']['url']), "riscv64", $data['files']['linuxriscv64']['jre']);
+    }
   }
 
   /**