123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- <?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="${preName}-${VERSION}-windows-x64.zip" property="build_win.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-windows-x64.zip" property="length_win"/>
- <script language="javascript">
- <![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="${preName}-${VERSION}-linux-x64.zip" property="build_linux.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-linux-x64.zip" property="length_linux"/>
- <script language="javascript">
- <![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="${preName}-${VERSION}-macosx64.zip" property="build_macosx64.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-macosx64.zip" property="length_macosx64"/>
- <script language="javascript">
- <![CDATA[
- var length_macosx64_bytes = project.getProperty("length_macosx64");
- var length_macosx64_kbytes = Math.round((length_macosx64_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- var length_macosx64_mbytes = Math.round((length_macosx64_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- project.setNewProperty("length_macosx64_mb", length_macosx64_mbytes);
- ]]>
- </script>
- <checksum file="${preName}-${VERSION}-macosarm.zip" property="build_macosarm.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-macosarm.zip" property="length_macosarm"/>
- <script language="javascript">
- <![CDATA[
- var length_macosarm_bytes = project.getProperty("length_macosarm");
- var length_macosarm_kbytes = Math.round((length_macosarm_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- var length_macosarm_mbytes = Math.round((length_macosarm_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- project.setNewProperty("length_macosarm_mb", length_macosarm_mbytes);
- ]]>
- </script>
- <checksum file="${preName}-${VERSION}-linux-mips.zip" property="build_mips.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-linux-mips.zip" property="length_mips"/>
- <script language="javascript">
- <![CDATA[
- var length_mips_bytes = project.getProperty("length_mips");
- var length_mips_kbytes = Math.round((length_mips_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- var length_mips_mbytes = Math.round((length_mips_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- project.setNewProperty("length_mips_mb", length_mips_mbytes);
- ]]>
- </script>
- <checksum file="${preName}-${VERSION}-linux-arm.zip" property="build_arm.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-linux-arm.zip" property="length_arm"/>
- <script language="javascript">
- <![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>
- <checksum file="${preName}-${VERSION}-sw.zip" property="build_sw.sha" algorithm="SHA-256" />
- <length file="${preName}-${VERSION}-sw.zip" property="length_sw"/>
- <script language="javascript">
- <![CDATA[
- var length_sw_bytes = project.getProperty("length_sw");
- var length_sw_kbytes = Math.round((length_sw_bytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- var length_sw_mbytes = Math.round((length_sw_kbytes / 1024) * Math.pow(10,2))/ Math.pow(10,2);
- project.setNewProperty("length_sw_mb", length_sw_mbytes);
- ]]>
- </script>
- <tstamp>
- <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
- </tstamp>
- <echo file="download_preview.jsonp">callback(
- {
- "windows": {
- "system": "windows",
- "name": "o2server-${VERSION}-windows-x64",
- "fileName": "o2server-${VERSION}-windows-x64.zip",
- "fileSize": "${length_win_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-windows-x64.zip",
- "sha256": "${build_win.sha}"
- },
- "linux": {
- "system": "linux",
- "name": o2server-${VERSION}-linux-x64",
- "fileName": "o2server-${VERSION}-linux-x64.zip",
- "fileSize": "${length_linux_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-x64.zip",
- "sha256": "${build_linux.sha}"
- },
- "macosx64": {
- "system": "macosx64",
- "name": "o2server-${VERSION}-macosx64",
- "fileName": "o2server-${VERSION}-macosx64.zip",
- "fileSize": "${length_macosx64_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-macosx64.zip",
- "sha256": "${build_macosx64.sha}"
- },
- "macosarm": {
- "system": "macosarm",
- "name": "o2server-${VERSION}-macosarm",
- "fileName": "o2server-${VERSION}-macosarm.zip",
- "fileSize": "${length_macosarm_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-macosarm.zip",
- "sha256": "${build_macosarm.sha}"
- },
- "raspi": {
- "system": "raspberrypi",
- "name": "o2server-${VERSION}-raspi.zip",
- "fileName": "o2server-${VERSION}-raspi.zip",
- "fileSize": "${length_raspberrypi_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-raspi.zip",
- "sha256": "${build_raspi.sha}"
- },
- "mips": {
- "system": "mips",
- "name": "o2server-${VERSION}-linux-mips",
- "fileName": "o2server-${VERSION}-linux-mips.zip",
- "fileSize": "${length_mips_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-mips.zip",
- "sha256": "${build_mips.sha}"
- },
- "arm": {
- "system": "arm",
- "name": "o2server-${VERSION}-linux-arm",
- "fileName": "o2server-${VERSION}-linux-arm.zip",
- "fileSize": "${length_arm_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-arm.zip",
- "sha256": "${build_arm.sha}"
- },
- "sw": {
- "system": "sw",
- "name": "o2server-${VERSION}-sw",
- "fileName": "o2server-${VERSION}-sw.zip",
- "fileSize": "${length_sw_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-sw.zip",
- "sha256": "${build_sw.sha}"
- },
- "jvm_windows": {}
- }
- )</echo>
- <echo file="download-pro.json">{
- "title": "O2OA V${VERSION}",
- "publishTime": "${TODAY}",
- "windows": {
- "system": "windows",
- "name": "o2server-${VERSION}-windows-x64",
- "fileName": "o2server-${VERSION}-windows-x64.zip",
- "fileSize": "${length_win_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-windows-x64.zip",
- "sha256": "${build_win.sha}"
- },
- "linux": {
- "system": "linux",
- "name": "o2server-${VERSION}-linux-x64",
- "fileName": "o2server-${VERSION}-linux-x64.zip",
- "fileSize": "${length_linux_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-x64.zip",
- "sha256": "${build_linux.sha}"
- },
- "macosx64": {
- "system": "macosx64",
- "name": "o2server-${VERSION}-macosx64",
- "fileName": "o2server-${VERSION}-macosx64.zip",
- "fileSize": "${length_macosx64_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-macosx64.zip",
- "sha256": "${build_macosx64.sha}"
- },
- "macosarm": {
- "system": "macosarm",
- "name": "o2server-${VERSION}-macosarm",
- "fileName": "o2server-${VERSION}-macosarm.zip",
- "fileSize": "${length_macosarm_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-macosarm.zip",
- "sha256": "${build_macosarm.sha}"
- },
- "raspi": {
- "system": "raspi",
- "name": "o2server-${VERSION}-raspi.zip",
- "fileName": "o2server-${VERSION}-raspi.zip",
- "fileSize": "${length_raspi_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-raspi.zip",
- "sha256": "${build_raspi.sha}"
- },
- "mips": {
- "system": "mips",
- "name": "o2server-${VERSION}-linux-mips",
- "fileName": "o2server-${VERSION}-linux-mips.zip",
- "fileSize": "${length_mips_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-mips.zip",
- "sha256": "${build_mips.sha}"
- },
- "arm": {
- "system": "arm",
- "name": "o2server-${VERSION}-linux-arm",
- "fileName": "o2server-${VERSION}-linux-arm.zip",
- "fileSize": "${length_arm_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-linux-arm.zip",
- "sha256": "${build_arm.sha}"
- },
- "sw": {
- "system": "sw",
- "name": "o2server-${VERSION}-sw",
- "fileName": "o2server-${VERSION}-sw.zip",
- "fileSize": "${length_sw_mb}MB",
- "updateTime": "${TODAY}",
- "url": "/download/o2server-${VERSION}-sw.zip",
- "sha256": "${build_sw.sha}"
- },
- "source":{
- "name":"o2oa-master",
- "updateTime":"${TODAY}",
- "fileSize":"990MB",
- "url":"https://github.com/o2oa/o2oa"
- }
- }</echo>
- </target>
- <target name="default_zip" depends="version_o2,zip_windows,zip_linux,zip_macosx64,zip_macosarm,zip_raspi,zip_mips,zip_arm,zip_sw" />
- <target name="version_o2">
- <tstamp>
- <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
- </tstamp>
- <echo file="${targetdir}/o2server/version.o2">{"version":"${VERSION}","date":"${TODAY}"}</echo>
- </target>
- <target name="zip_windows">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-windows-x64.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/windows_java11/"/>
- <include name="service_windows.bat"/>
- <include name="start_windows.bat"/>
- <include name="start_windows_debug.bat"/>
- <include name="console_windows.bat"/>
- <include name="stop_windows.bat"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_linux">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-linux-x64.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/linux_java11/"/>
- <include name="start_linux.sh"/>
- <include name="start_linux_min.sh"/>
- <include name="start_linux_debug.sh"/>
- <include name="console_linux.sh"/>
- <include name="stop_linux.sh"/>
- <include name="service_linux.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_macosx64">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-macosx64.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/macosx64_java11/"/>
- <include name="start_macosx64.sh"/>
- <include name="start_macosx64_debug.sh"/>
- <include name="console_macosx64.sh"/>
- <include name="stop_macosx64.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_macosarm">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-macosarm.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/macosarm_java11/"/>
- <include name="start_macosarm.sh"/>
- <include name="start_macosarm_debug.sh"/>
- <include name="console_macosarm.sh"/>
- <include name="stop_macosarm.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_raspi">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-raspi.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/raspi_java11/"/>
- <include name="start_raspi.sh"/>
- <include name="start_raspi_debug.sh"/>
- <include name="console_raspi.sh"/>
- <include name="stop_raspi.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_mips">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-linux-mips.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/mips_java11/"/>
- <include name="start_mips.sh"/>
- <include name="start_mips_debug.sh"/>
- <include name="console_mips.sh"/>
- <include name="stop_mips.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_arm">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-linux-arm.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/arm_java11/"/>
- <include name="start_arm.sh"/>
- <include name="start_arm_debug.sh"/>
- <include name="console_arm.sh"/>
- <include name="stop_arm.sh"/>
- </zipfileset>
- </zip>
- </target>
- <target name="zip_sw">
- <zip encoding="utf-8" destfile="${preName}-${VERSION}-sw.zip" update="false">
- <zipfileset dir="${targetdir}/o2server" filemode="777" dirmode="777" encoding="utf-8" prefix="o2server">
- <include name="commons/"/>
- <exclude name="commons/ext/" />
- <include name="configSample/"/>
- <include name="localSample/"/>
- <include name="servers/"/>
- <include name="store/"/>
- <include name="console.jar"/>
- <include name="index.html"/>
- <include name="version.o2"/>
- <include name="jvm/sw_java11/"/>
- <include name="start_sw.sh"/>
- <include name="start_sw_debug.sh"/>
- <include name="console_sw.sh"/>
- <include name="stop_sw.sh"/>
- </zipfileset>
- </zip>
- </target>
- </project>
|