Преглед изворни кода

neokylin-loongson 修改为 risc kylinos-phytium 修改为 arm

tangxl пре 5 година
родитељ
комит
2fc55501bf

+ 111 - 110
build.xml

@@ -1,85 +1,86 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project basedir="." name="main" default="default">
 	<property name="VERSION" value="4.3.6" />
+	<property name="preName" value="o2server"/>
 	<property name="targetdir" value="target"/>
 	<target name="default" depends="md5code" />
 	<target name="md5code" depends="default_zip">
-		<checksum file="o2server-windows-${VERSION}.zip" property="build_win.sha" algorithm="SHA-256" />
-		<length file="o2server-windows-${VERSION}.zip" property="length_win"/>
+		<checksum file="${preName}-windows-${VERSION}.zip" property="build_win.sha" algorithm="SHA-256" />
+		<length file="${preName}-windows-${VERSION}.zip" property="length_win"/>
 		<script language="javascript">
-		<![CDATA[
+			<![CDATA[
 			var length_win_bytes = project.getProperty("length_win");
 			var length_win_kbytes = Math.round((length_win_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			var length_win_mbytes = Math.round((length_win_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			project.setNewProperty("length_win_mb", length_win_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-linux-${VERSION}.zip" property="build_linux.sha" algorithm="SHA-256" />
-		<length file="o2server-linux-${VERSION}.zip" property="length_linux"/>
+		<checksum file="${preName}-linux-${VERSION}.zip" property="build_linux.sha" algorithm="SHA-256" />
+		<length file="${preName}-linux-${VERSION}.zip" property="length_linux"/>
 		<script language="javascript">
-		<![CDATA[
+			<![CDATA[
 			var length_linux_bytes = project.getProperty("length_linux");
 			var length_linux_kbytes = Math.round((length_linux_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			var length_linux_mbytes = Math.round((length_linux_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			project.setNewProperty("length_linux_mb", length_linux_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-macos-${VERSION}.zip" property="build_macos.sha" algorithm="SHA-256" />
-		<length file="o2server-macos-${VERSION}.zip" property="length_macos"/>
+		<checksum file="${preName}-macos-${VERSION}.zip" property="build_macos.sha" algorithm="SHA-256" />
+		<length file="${preName}-macos-${VERSION}.zip" property="length_macos"/>
 		<script language="javascript">
-		<![CDATA[
+			<![CDATA[
 			var length_macos_bytes = project.getProperty("length_macos");
 			var length_macos_kbytes = Math.round((length_macos_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			var length_macos_mbytes = Math.round((length_macos_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			project.setNewProperty("length_macos_mb", length_macos_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-aix-${VERSION}.zip" property="build_aix.sha" algorithm="SHA-256" />
-		<length file="o2server-aix-${VERSION}.zip" property="length_aix"/>
+		<checksum file="${preName}-aix-${VERSION}.zip" property="build_aix.sha" algorithm="SHA-256" />
+		<length file="${preName}-aix-${VERSION}.zip" property="length_aix"/>
 		<script language="javascript">
-		<![CDATA[
+			<![CDATA[
 			var length_aix_bytes = project.getProperty("length_aix");
 			var length_aix_kbytes = Math.round((length_aix_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			var length_aix_mbytes = Math.round((length_aix_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			project.setNewProperty("length_aix_mb", length_aix_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-raspberrypi-${VERSION}.zip" property="build_raspberrypi.sha" algorithm="SHA-256" />
-		<length file="o2server-raspberrypi-${VERSION}.zip" property="length_raspberrypi"/>
+		<checksum file="${preName}-raspberrypi-${VERSION}.zip" property="build_raspberrypi.sha" algorithm="SHA-256" />
+		<length file="${preName}-raspberrypi-${VERSION}.zip" property="length_raspberrypi"/>
 		<script language="javascript">
-		<![CDATA[
+			<![CDATA[
 			var length_raspberrypi_bytes = project.getProperty("length_raspberrypi");
 			var length_raspberrypi_kbytes = Math.round((length_raspberrypi_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			var length_raspberrypi_mbytes = Math.round((length_raspberrypi_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
 			project.setNewProperty("length_raspberrypi_mb", length_raspberrypi_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-neokylin-loongson-${VERSION}.zip" property="build_neokylin-loongson.sha" algorithm="SHA-256" />
-		<length file="o2server-neokylin-loongson-${VERSION}.zip" property="length_neokylin-loongson"/>
+		<checksum file="${preName}-risc-${VERSION}.zip" property="build_risc.sha" algorithm="SHA-256" />
+		<length file="${preName}-risc-${VERSION}.zip" property="length_risc"/>
 		<script language="javascript">
-		<![CDATA[
-			var length_neokylin_loongson_bytes = project.getProperty("length_neokylin-loongson");
-			var length_neokylin_loongson_kbytes = Math.round((length_neokylin_loongson_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
-			var length_neokylin_loongson_mbytes = Math.round((length_neokylin_loongson_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
-			project.setNewProperty("length_neokylin-loongson_mb", length_neokylin_loongson_mbytes);
+			<![CDATA[
+			var length_risc_bytes = project.getProperty("length_risc");
+			var length_risc_kbytes = Math.round((length_risc_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
+			var length_risc_mbytes = Math.round((length_risc_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
+			project.setNewProperty("length_risc_mb", length_risc_mbytes);
 		]]>
 		</script>
-		<checksum file="o2server-kylinos-phytium-${VERSION}.zip" property="build_kylinos_phytium.sha" algorithm="SHA-256" />
-		<length file="o2server-kylinos-phytium-${VERSION}.zip" property="length_kylinos_phytium"/>
+		<checksum file="${preName}-arm-${VERSION}.zip" property="build_arm.sha" algorithm="SHA-256" />
+		<length file="${preName}-arm-${VERSION}.zip" property="length_arm"/>
 		<script language="javascript">
-		<![CDATA[
-			var length_kylinos_phytium_bytes = project.getProperty("length_kylinos_phytium");
-			var length_kylinos_phytium_kbytes = Math.round((length_kylinos_phytium_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
-			var length_kylinos_phytium_mbytes = Math.round((length_kylinos_phytium_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
-			project.setNewProperty("length_kylinos_phytium_mb", length_kylinos_phytium_mbytes);
+			<![CDATA[
+			var length_arm_bytes = project.getProperty("length_arm");
+			var length_arm_kbytes = Math.round((length_arm_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
+			var length_arm_mbytes = Math.round((length_arm_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
+			project.setNewProperty("length_arm_mb", length_arm_mbytes);
 		]]>
 		</script>
 		<tstamp>
 			<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
 		</tstamp>
 		<echo file="download_preview.jsonp">callback(
-		{
-		  "windows": {
+			{
+			"windows": {
 			"system": "windows",
 			"name": "o2server-windows-${VERSION}",
 			"fileName": "o2server-windows-${VERSION}.zip",
@@ -87,8 +88,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-windows-${VERSION}.zip",
 			"sha256": "${build_win.sha}"
-		  },
-		  "linux": {
+			},
+			"linux": {
 			"system": "linux",
 			"name": "o2server-linux-${VERSION}",
 			"fileName": "o2server-linux-${VERSION}.zip",
@@ -96,8 +97,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-linux-${VERSION}.zip",
 			"sha256": "${build_linux.sha}"
-		  },
-		  "macos": {
+			},
+			"macos": {
 			"system": "macos",
 			"name": "o2server-macos-${VERSION}",
 			"fileName": "o2server-macos-${VERSION}.zip",
@@ -105,8 +106,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-macos-${VERSION}.zip",
 			"sha256": "${build_macos.sha}"
-		  },
-		  "aix": {
+			},
+			"aix": {
 			"system": "aix",
 			"name": "o2server-aix-${VERSION}",
 			"fileName": "o2server-aix-${VERSION}.zip",
@@ -114,8 +115,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-aix-${VERSION}.zip",
 			"sha256": "${build_aix.sha}"
-		  },
-		  "raspberrypi": {
+			},
+			"raspberrypi": {
 			"system": "raspberrypi",
 			"name": "o2server-raspberrypi-${VERSION}",
 			"fileName": "o2server-raspberrypi-${VERSION}.zip",
@@ -123,32 +124,32 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-raspberrypi-${VERSION}.zip",
 			"sha256": "${build_raspberrypi.sha}"
-		  },
-		  "neokylin_loongson": {
-			"system": "neokylin_loongson",
-			"name": "o2server-neokylin-loongson-${VERSION}",
-			"fileName": "o2server-neokylin-loongson-${VERSION}.zip",
-			"fileSize": "${length_neokylin-loongson_mb}MB",
+			},
+			"risc": {
+			"system": "risc",
+			"name": "o2server-risc-${VERSION}",
+			"fileName": "o2server-risc-${VERSION}.zip",
+			"fileSize": "${length_risc_mb}MB",
 			"updateTime": "${TODAY}",
-			"url": "/download/o2server-neokylin-loongson-${VERSION}.zip",
-			"sha256": "${build_neokylin-loongson.sha}"
-		  },
-		  "kylinos_phytium": {
-			"system": "kylinos_phytium",
-			"name": "o2server-kylinos-phytium-${VERSION}",
-			"fileName": "o2server-kylinos-phytium-${VERSION}.zip",
-			"fileSize": "${length_kylinos_phytium_mb}MB",
+			"url": "/download/o2server-risc-${VERSION}.zip",
+			"sha256": "${build_risc.sha}"
+			},
+			"arm": {
+			"system": "arm",
+			"name": "o2server-arm-${VERSION}",
+			"fileName": "o2server-arm-${VERSION}.zip",
+			"fileSize": "${length_arm_mb}MB",
 			"updateTime": "${TODAY}",
-			"url": "/download/o2server-kylinos-phytium-${VERSION}.zip",
-			"sha256": "${build_kylinos_phytium.sha}"
-		  },
-		  "jvm_windows": {}
-		}
-		)</echo>
+			"url": "/download/o2server-arm-${VERSION}.zip",
+			"sha256": "${build_arm.sha}"
+			},
+			"jvm_windows": {}
+			}
+			)</echo>
 		<echo file="download-pro.json">{
-		  "title": "O2OA V${VERSION}",
-		  "publishTime": "${TODAY}",
-		  "windows": {
+			"title": "O2OA V${VERSION}",
+			"publishTime": "${TODAY}",
+			"windows": {
 			"system": "windows",
 			"name": "o2server-windows-${VERSION}",
 			"fileName": "o2server-windows-${VERSION}.zip",
@@ -156,8 +157,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-windows-${VERSION}.zip",
 			"sha256": "${build_win.sha}"
-		  },
-		  "linux": {
+			},
+			"linux": {
 			"system": "linux",
 			"name": "o2server-linux-${VERSION}",
 			"fileName": "o2server-linux-${VERSION}.zip",
@@ -165,8 +166,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-linux-${VERSION}.zip",
 			"sha256": "${build_linux.sha}"
-		  },
-		  "macos": {
+			},
+			"macos": {
 			"system": "macos",
 			"name": "o2server-macos-${VERSION}",
 			"fileName": "o2server-macos-${VERSION}.zip",
@@ -174,8 +175,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-macos-${VERSION}.zip",
 			"sha256": "${build_macos.sha}"
-		  },
-		  "aix": {
+			},
+			"aix": {
 			"system": "aix",
 			"name": "o2server-aix-${VERSION}",
 			"fileName": "o2server-aix-${VERSION}.zip",
@@ -183,8 +184,8 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-aix-${VERSION}.zip",
 			"sha256": "${build_aix.sha}"
-		  },
-		  "raspberrypi": {
+			},
+			"raspberrypi": {
 			"system": "raspberrypi",
 			"name": "o2server-raspberrypi-${VERSION}",
 			"fileName": "o2server-raspberrypi-${VERSION}.zip",
@@ -192,34 +193,34 @@
 			"updateTime": "${TODAY}",
 			"url": "/download/o2server-raspberrypi-${VERSION}.zip",
 			"sha256": "${build_raspberrypi.sha}"
-		  },
-		  "neokylin_loongson": {
-			"system": "neokylin_loongson",
-			"name": "o2server-neokylin-loongson-${VERSION}",
-			"fileName": "o2server-neokylin-loongson-${VERSION}.zip",
-			"fileSize": "${length_neokylin-loongson_mb}MB",
+			},
+			"risc": {
+			"system": "risc",
+			"name": "o2server-risc-${VERSION}",
+			"fileName": "o2server-risc-${VERSION}.zip",
+			"fileSize": "${length_risc_mb}MB",
 			"updateTime": "${TODAY}",
-			"url": "/download/o2server-neokylin-loongson-${VERSION}.zip",
-			"sha256": "${build_neokylin-loongson.sha}"
-		  },
-		  "kylinos_phytium": {
-			"system": "kylinos_phytium",
-			"name": "o2server-kylinos-phytium-${VERSION}",
-			"fileName": "o2server-kylinos-phytium-${VERSION}.zip",
-			"fileSize": "${length_kylinos_phytium_mb}MB",
+			"url": "/download/o2server-risc-${VERSION}.zip",
+			"sha256": "${build_risc.sha}"
+			},
+			"arm": {
+			"system": "arm",
+			"name": "o2server-arm-${VERSION}",
+			"fileName": "o2server-arm-${VERSION}.zip",
+			"fileSize": "${length_arm_mb}MB",
 			"updateTime": "${TODAY}",
-			"url": "/download/o2server-kylinos-phytium-${VERSION}.zip",
-			"sha256": "${build_kylinos_phytium.sha}"
-		  },
-		  "source":{
+			"url": "/download/o2server-arm-${VERSION}.zip",
+			"sha256": "${build_arm.sha}"
+			},
+			"source":{
 			"name":"o2oa-master",
 			"updateTime":"${TODAY}",
 			"fileSize":"990MB",
 			"url":"https://github.com/o2oa/o2oa"
-		  }
-		}</echo>
+			}
+			}</echo>
 	</target>
-	<target name="default_zip" depends="version_o2,zip_windows,zip_linux,zip_macos,zip_aix,zip_raspberrypi,zip_neokylin_loongson,zip_kylinos_phytium" />
+	<target name="default_zip" depends="version_o2,zip_windows,zip_linux,zip_macos,zip_aix,zip_raspberrypi,zip_risc,zip_arm" />
 	<target name="version_o2">
 		<tstamp>
 			<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
@@ -227,7 +228,7 @@
 		<echo file="${targetdir}/version.o2">{"version":"${VERSION}","date":"${TODAY}"}</echo>
 	</target>
 	<target name="zip_windows">
-		<zip encoding="utf-8" destfile="o2server-windows-${VERSION}.zip" update="false">
+		<zip encoding="utf-8" destfile="${preName}-windows-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -248,7 +249,7 @@
 		</zip>
 	</target>
 	<target name="zip_linux">
-		<zip encoding="utf-8" destfile="o2server-linux-${VERSION}.zip" update="false">
+		<zip encoding="utf-8" destfile="${preName}-linux-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -268,7 +269,7 @@
 		</zip>
 	</target>
 	<target name="zip_macos">
-		<zip encoding="utf-8" destfile="o2server-macos-${VERSION}.zip" update="false">
+		<zip encoding="utf-8" destfile="${preName}-macos-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -288,7 +289,7 @@
 		</zip>
 	</target>
 	<target name="zip_aix">
-		<zip encoding="utf-8" destfile="o2server-aix-${VERSION}.zip" update="false">
+		<zip encoding="utf-8" destfile="${preName}-aix-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -308,7 +309,7 @@
 		</zip>
 	</target>
 	<target name="zip_raspberrypi">
-		<zip encoding="utf-8" destfile="o2server-raspberrypi-${VERSION}.zip" update="false">
+		<zip encoding="utf-8" destfile="${preName}-raspberrypi-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -327,8 +328,8 @@
 			</zipfileset>
 		</zip>
 	</target>
-	<target name="zip_neokylin_loongson">
-		<zip encoding="utf-8" destfile="o2server-neokylin-loongson-${VERSION}.zip" update="false">
+	<target name="zip_risc">
+		<zip encoding="utf-8" destfile="${preName}-risc-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -339,16 +340,16 @@
 				<include name="index.html"/>
 				<include name="version.o2"/>
 				<include name="console.jar"/>
-				<include name="jvm/neokylin_loongson/"/>
-				<include name="start_neokylin_loongson.sh"/>
-				<include name="start_neokylin_loongson_debug.sh"/>
-				<include name="console_neokylin_loongson.sh"/>
-				<include name="stop_neokylin_loongson.sh"/>
+				<include name="jvm/risc/"/>
+				<include name="start_risc.sh"/>
+				<include name="start_risc_debug.sh"/>
+				<include name="console_risc.sh"/>
+				<include name="stop_risc.sh"/>
 			</zipfileset>
 		</zip>
 	</target>
-	<target name="zip_kylinos_phytium">
-		<zip encoding="utf-8" destfile="o2server-kylinos-phytium-${VERSION}.zip" update="false">
+	<target name="zip_arm">
+		<zip encoding="utf-8" destfile="${preName}-arm-${VERSION}.zip" update="false">
 			<zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
 				<include name="commons/"/>
 				<include name="configSample/"/>
@@ -359,11 +360,11 @@
 				<include name="index.html"/>
 				<include name="version.o2"/>
 				<include name="console.jar"/>
-				<include name="jvm/kylinos_phytium/"/>
-				<include name="start_kylinos_phytium.sh"/>
-				<include name="start_kylinos_phytium_debug.sh"/>
-				<include name="console_kylinos_phytium.sh"/>
-				<include name="stop_kylinos_phytium.sh"/>
+				<include name="jvm/arm/"/>
+				<include name="start_arm.sh"/>
+				<include name="start_arm_debug.sh"/>
+				<include name="console_arm.sh"/>
+				<include name="stop_arm.sh"/>
 			</zipfileset>
 		</zip>
 	</target>

+ 5 - 5
gulpfile.js

@@ -1,4 +1,4 @@
-var gulp = require('gulp'),
+gulpfile.jsgulpfile.jsvar gulp = require('gulp'),
     gutil = require('gulp-util'),
     del = require('del'),
     fs = require("fs"),
@@ -25,9 +25,9 @@ var jvmUrls = {
     "all": "/build/jvm.tar.gz",
     "linux": "/build/linux.tar.gz",
     "aix": "/build/aix.tar.gz",
-    "kylinos": "/build/kylinos_phytium.tar",
+    "arm": "/build/arm.tar",
     "macos": "/build/macos.tar.gz",
-    "neokylin": "/build/neokylin_loongson.tar.gz",
+    "risc": "/build/risc.tar.gz",
     "raspberrypi": "/build/raspberrypi.tar.gz",
     "windows": "/build/windows.tar.gz"
 };
@@ -35,9 +35,9 @@ var scripts = {
     "all": ["o2server/*.sh", "o2server/*.jar", "o2server/*.html", "o2server/*.bat", "o2server/version.o2"],
     "linux": ["o2server/*linux*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
     "aix": ["o2server/*aix*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
-    "kylinos": ["o2server/*kylinos_phytium*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
+    "arm": ["o2server/*arm*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
     "macos": ["o2server/*macos*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
-    "neokylin": ["o2server/*neokylin_loongson*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
+    "risc": ["o2server/*risc*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
     "raspberrypi": ["o2server/*raspberrypi*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"],
     "windows": ["o2server/*windows*", "o2server/*.jar", "o2server/*.html", "o2server/version.o2"]
 };

+ 13 - 6
jenkinsBuildfile

@@ -1,6 +1,13 @@
 pipeline {
     agent {label 'master' }
     stages {
+		stage('getParameter') {
+            steps {
+                echo 'env.sshServer='+env.sshServer
+				echo 'env.preName='+env.preName
+				echo 'env.isbigTag='+env.isbigTag
+            }
+        }
         stage('envtag') {
             steps {
                 bat  "cd.> \"gitTag.txt\""
@@ -8,7 +15,8 @@ pipeline {
                 script {
             	    json_file = "gitTag.txt"
 	                file_contents = readFile json_file
-	                if(file_contents.trim().indexOf("-")!=-1){
+
+	                if(file_contents.trim().indexOf("-")!=-1&&env.isallTag.trim().indexOf("true")==-1){
 						env.tag =file_contents.trim().substring(0,file_contents.trim().indexOf("-"))
 					}else{
 						env.tag =file_contents.trim();
@@ -29,15 +37,14 @@ pipeline {
         }
 		stage('antzip') {
             steps {
-               bat 'ant -DVERSION='+env.tag
+               bat 'ant -DVERSION='+env.tag+'   -DpreName='+env.preName
             }
         }
         stage('sshZipSend') {
 			steps {
-				sshPublisher(publishers: [sshPublisherDesc(configName: '172.16.95.60', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/o2server/servers/webServer/download', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'o2server-*'+env.tag+'.zip')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
-				sshPublisher(publishers: [sshPublisherDesc(configName: '172.16.95.60', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/o2server/servers/webServer/download', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'download-pro.json,download_preview.jsonp')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
+				sshPublisher(publishers: [sshPublisherDesc(configName: ''+env.sshServer+'', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/o2server/servers/webServer/download', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '*'+env.tag+'.zip')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
+				sshPublisher(publishers: [sshPublisherDesc(configName: ''+env.sshServer+'', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/o2server/servers/webServer/download', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'download-pro.json,download_preview.jsonp')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
 			}
 		}
-      }
-
+	}
 }

+ 1 - 0
o2server/console_arm.sh

@@ -0,0 +1 @@
+$(cd "$(dirname "$0")"; pwd)/jvm/arm/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.Shadow

+ 0 - 1
o2server/console_kylinos_phytium.sh

@@ -1 +0,0 @@
-$(cd "$(dirname "$0")"; pwd)/jvm/kylinos_phytium/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.Shadow

+ 0 - 1
o2server/console_neokylin_loongson.sh

@@ -1 +0,0 @@
-$(cd "$(dirname "$0")"; pwd)/jvm/neokylin_loongson/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.Shadow

+ 1 - 0
o2server/console_risc.sh

@@ -0,0 +1 @@
+$(cd "$(dirname "$0")"; pwd)/jvm/risc/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.Shadow

+ 8 - 8
o2server/start_aix.sh

@@ -118,17 +118,17 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
 		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/

+ 16 - 16
o2server/start_aix_debug.sh

@@ -118,29 +118,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update

+ 13 - 13
o2server/start_arm.sh

@@ -118,8 +118,8 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
 		if [ -f ${current_dir}/start_risc_debug.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
@@ -127,23 +127,23 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/stop_risc.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update
 	fi
 fi
-setsid ${current_dir}/jvm/kylinos_phytium/bin/java -server -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar
+setsid ${current_dir}/jvm/arm/bin/java -server -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar

+ 17 - 17
o2server/start_kylinos_phytium.sh → o2server/start_arm_debug.sh

@@ -118,32 +118,32 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update
 	fi
 fi
-setsid ${current_dir}/jvm/kylinos_phytium/bin/java -server -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar
+setsid ${current_dir}/jvm/arm/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20000 -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar

+ 16 - 16
o2server/start_linux.sh

@@ -118,29 +118,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update

+ 16 - 16
o2server/start_linux_debug.sh

@@ -118,29 +118,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update

+ 12 - 12
o2server/start_macos.sh

@@ -122,26 +122,26 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
 		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update

+ 16 - 16
o2server/start_macos_debug.sh

@@ -119,29 +119,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update

+ 0 - 149
o2server/start_neokylin_loongson_debug.sh

@@ -1,149 +0,0 @@
-current_dir=$(cd "$(dirname "$0")"; pwd);
-if [ -d ${current_dir}/local/update ]; then
-	if [ ! -d ${current_dir}/commons ]; then
-	mkdir ${current_dir}/commons
-	fi
-	if [ ! -d ${current_dir}/config ]; then
-		mkdir ${current_dir}/config
-	fi
-	if [ ! -d ${current_dir}/configSample ]; then
-		mkdir ${current_dir}/configSample
-	fi
-	if [ ! -d ${current_dir}/local ]; then
-		mkdir ${current_dir}/local
-	fi
-	if [ ! -d ${current_dir}/local ]; then
-		mkdir ${current_dir}/local
-	fi
-	if [ ! -d ${current_dir}/localSample ]; then
-		mkdir ${current_dir}/localSample
-	fi
-	if [ ! -d ${current_dir}/jvm ]; then
-		mkdir ${current_dir}/jvm
-	fi
-	if [ ! -d ${current_dir}/servers ]; then
-		mkdir ${current_dir}/servers
-	fi
-	if [ ! -d ${current_dir}/store ]; then
-		mkdir ${current_dir}/store
-	fi
-	if [ -f ${current_dir}/local/update/o2server/version.o2 ]; then
-		if [ -d ${current_dir}/local/update/o2server/configSample ]; then
-			cp -Rf ${current_dir}/local/update/o2server/configSample ${current_dir}/
-		fi
-		if [ -d ${current_dir}/local/update/o2server/localSample ]; then
-			cp -Rf ${current_dir}/local/update/o2server/localSample ${current_dir}/
-		fi
-		if [ -d ${current_dir}/local/update/o2server/commons ]; then
-			cp -Rf ${current_dir}/local/update/o2server/commons ${current_dir}/
-		fi
-		if [ -d ${current_dir}/local/update/o2server/jvm ]; then
-			cp -Rf ${current_dir}/local/update/o2server/jvm ${current_dir}/
-		fi
-		if [ -d ${current_dir}/local/update/o2server/servers ]; then
-			cp -Rf ${current_dir}/local/update/o2server/servers ${current_dir}/
-		fi
-		if [ -d ${current_dir}/local/update/o2server/store ]; then
-			cp -Rf ${current_dir}/local/update/o2server/store ${current_dir}/
-		fi
-		if [ -f ${current_dir}/local/update/o2server/console.jar ]; then
-			cp -f ${current_dir}/local/update/o2server/console.jar ${current_dir}/
-		fi
-		if [ -f ${current_dir}/local/update/o2server/index.html ]; then
-			cp -f ${current_dir}/local/update/o2server/index.html ${current_dir}/
-		fi
-		if [ -f ${current_dir}/local/update/o2server/src.zip ]; then
-			cp -f ${current_dir}/local/update/o2server/src.zip ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_windows.bat ]; then
-			cp -f ${current_dir}/local/update/o2server/start_windows.bat ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_windows_debug.bat ]; then
-			cp -f ${current_dir}/local/update/o2server/start_windows_debug.bat ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_windows.bat ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_windows.bat ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_windows.bat ]; then
-			cp -f ${current_dir}/local/update/o2server/console_windows.bat ${current_dir}/
-		fi
-		if [ -f ${current_dir}/service_windows.bat ]; then
-			cp -f ${current_dir}/local/update/o2server/service_windows.bat ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_linux.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_linux.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_linux_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_linux_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_linux.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_linux.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_linux.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_linux.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_macos.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_macos.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_macos_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_macos_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_macos.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_macos.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_macos.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_macos.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_aix.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_aix.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_aix_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_aix_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_aix.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_aix.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_aix.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_aix.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_raspberrypi.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_raspberrypi.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_raspberrypi_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_raspberrypi_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_raspberrypi.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_raspberrypi.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
-		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
-		fi
-		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
-		rm -Rf ${current_dir}/local/update
-	fi
-fi
-setsid ${current_dir}/jvm/neokylin_loongson/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20000 -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar

+ 16 - 16
o2server/start_raspberrypi.sh

@@ -118,29 +118,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		sudo cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		sudo rm -Rf ${current_dir}/local/update

+ 16 - 16
o2server/start_raspberrypi_debug.sh

@@ -118,29 +118,29 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		sudo cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		sudo rm -Rf ${current_dir}/local/update

+ 17 - 17
o2server/start_neokylin_loongson.sh → o2server/start_risc.sh

@@ -118,32 +118,32 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update
 	fi
 fi
-setsid ${current_dir}/jvm/neokylin_loongson/bin/java -server -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar
+setsid ${current_dir}/jvm/risc/bin/java -server -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar

+ 17 - 17
o2server/start_kylinos_phytium_debug.sh → o2server/start_risc_debug.sh

@@ -118,32 +118,32 @@ if [ -d ${current_dir}/local/update ]; then
 		if [ -f ${current_dir}/console_raspberrypi.sh ]; then
 			cp -f ${current_dir}/local/update/o2server/console_raspberrypi.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_neokylin_loongson_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_neokylin_loongson_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_risc_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_risc_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_neokylin_loongson.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_neokylin_loongson.sh ${current_dir}/
+		if [ -f ${current_dir}/console_risc.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_risc.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/start_kylinos_phytium_debug.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/start_kylinos_phytium_debug.sh ${current_dir}/
+		if [ -f ${current_dir}/start_arm_debug.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/start_arm_debug.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/stop_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/stop_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/stop_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/stop_arm.sh ${current_dir}/
 		fi
-		if [ -f ${current_dir}/console_kylinos_phytium.sh ]; then
-			cp -f ${current_dir}/local/update/o2server/console_kylinos_phytium.sh ${current_dir}/
+		if [ -f ${current_dir}/console_arm.sh ]; then
+			cp -f ${current_dir}/local/update/o2server/console_arm.sh ${current_dir}/
 		fi
 		cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
 		rm -Rf ${current_dir}/local/update
 	fi
 fi
-setsid ${current_dir}/jvm/kylinos_phytium/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20000 -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar
+setsid ${current_dir}/jvm/risc/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20000 -Djava.awt.headless=true -Xms2g -Xmx8g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar

+ 16 - 16
o2server/start_windows.bat

@@ -115,29 +115,29 @@ if exist "%~dp0local\update" (
 		if exist "%~dp0console_raspberrypi.sh" (
 			copy "%~dp0local\update\o2server\console_raspberrypi.sh" "%~dp0"
 		)
-		if exist "%~dp0start_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\start_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0start_risc.sh" (
+			copy "%~dp0local\update\o2server\start_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0start_neokylin_loongson_debug.sh" (
-			copy "%~dp0local\update\o2server\start_neokylin_loongson_debug.sh" "%~dp0"
+		if exist "%~dp0start_risc_debug.sh" (
+			copy "%~dp0local\update\o2server\start_risc_debug.sh" "%~dp0"
 		)
-		if exist "%~dp0stop_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\stop_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0stop_risc.sh" (
+			copy "%~dp0local\update\o2server\stop_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0console_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\console_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0console_risc.sh" (
+			copy "%~dp0local\update\o2server\console_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0start_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\start_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0start_arm.sh" (
+			copy "%~dp0local\update\o2server\start_arm.sh" "%~dp0"
 		)
-		if exist "%~dp0start_kylinos_phytium_debug.sh" (
-			copy "%~dp0local\update\o2server\start_kylinos_phytium_debug.sh" "%~dp0"
+		if exist "%~dp0start_arm_debug.sh" (
+			copy "%~dp0local\update\o2server\start_arm_debug.sh" "%~dp0"
 		)
-		if exist "%~dp0stop_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\stop_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0stop_arm.sh" (
+			copy "%~dp0local\update\o2server\stop_arm.sh" "%~dp0"
 		)
-		if exist "%~dp0console_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\console_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0console_arm.sh" (
+			copy "%~dp0local\update\o2server\console_arm.sh" "%~dp0"
 		)
 		copy "%~dp0local\update\o2server\version.o2" "%~dp0"
 		rmdir /S/Q "%~dp0local\update"

+ 16 - 16
o2server/start_windows_debug.bat

@@ -115,29 +115,29 @@ if exist "%~dp0local\update" (
 		if exist "%~dp0console_raspberrypi.sh" (
 			copy "%~dp0local\update\o2server\console_raspberrypi.sh" "%~dp0"
 		)
-		if exist "%~dp0start_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\start_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0start_risc.sh" (
+			copy "%~dp0local\update\o2server\start_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0start_neokylin_loongson_debug.sh" (
-			copy "%~dp0local\update\o2server\start_neokylin_loongson_debug.sh" "%~dp0"
+		if exist "%~dp0start_risc_debug.sh" (
+			copy "%~dp0local\update\o2server\start_risc_debug.sh" "%~dp0"
 		)
-		if exist "%~dp0stop_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\stop_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0stop_risc.sh" (
+			copy "%~dp0local\update\o2server\stop_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0console_neokylin_loongson.sh" (
-			copy "%~dp0local\update\o2server\console_neokylin_loongson.sh" "%~dp0"
+		if exist "%~dp0console_risc.sh" (
+			copy "%~dp0local\update\o2server\console_risc.sh" "%~dp0"
 		)
-		if exist "%~dp0start_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\start_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0start_arm.sh" (
+			copy "%~dp0local\update\o2server\start_arm.sh" "%~dp0"
 		)
-		if exist "%~dp0start_kylinos_phytium_debug.sh" (
-			copy "%~dp0local\update\o2server\start_kylinos_phytium_debug.sh" "%~dp0"
+		if exist "%~dp0start_arm_debug.sh" (
+			copy "%~dp0local\update\o2server\start_arm_debug.sh" "%~dp0"
 		)
-		if exist "%~dp0stop_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\stop_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0stop_arm.sh" (
+			copy "%~dp0local\update\o2server\stop_arm.sh" "%~dp0"
 		)
-		if exist "%~dp0console_kylinos_phytium.sh" (
-			copy "%~dp0local\update\o2server\console_kylinos_phytium.sh" "%~dp0"
+		if exist "%~dp0console_arm.sh" (
+			copy "%~dp0local\update\o2server\console_arm.sh" "%~dp0"
 		)
 		copy "%~dp0local\update\o2server\version.o2" "%~dp0"
 		rmdir /S/Q "%~dp0local\update"

+ 1 - 0
o2server/stop_arm.sh

@@ -0,0 +1 @@
+$(cd "$(dirname "$0")"; pwd)/jvm/arm/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.swapcommand.Exit

+ 0 - 1
o2server/stop_kylinos_phytium.sh

@@ -1 +0,0 @@
-$(cd "$(dirname "$0")"; pwd)/jvm/kylinos_phytium/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.swapcommand.Exit

+ 0 - 1
o2server/stop_neokylin_loongson.sh

@@ -1 +0,0 @@
-$(cd "$(dirname "$0")"; pwd)/jvm/neokylin_loongson/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.swapcommand.Exit

+ 1 - 0
o2server/stop_risc.sh

@@ -0,0 +1 @@
+$(cd "$(dirname "$0")"; pwd)/jvm/risc/bin/java -cp $(cd "$(dirname "$0")"; pwd)/console.jar com.x.server.console.swapcommand.Exit