diff --git a/build.xml b/build.xml new file mode 100644 index 0000000000000000000000000000000000000000..f465275473173932c249ae3797a03c6357779765 --- /dev/null +++ b/build.xml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + callback( + { + "windows": { + "system": "windows", + "name": "o2server-windows-${VERSION}", + "fileName": "o2server-windows-${VERSION}.zip", + "fileSize": "${length_win_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-windows-${VERSION}.zip", + "sha256": "${build_win.sha}" + }, + "linux": { + "system": "linux", + "name": "o2server-linux-${VERSION}", + "fileName": "o2server-linux-${VERSION}.zip", + "fileSize": "${length_linux_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-linux-${VERSION}.zip", + "sha256": "${build_linux.sha}" + }, + "macos": { + "system": "macos", + "name": "o2server-macos-${VERSION}", + "fileName": "o2server-macos-${VERSION}.zip", + "fileSize": "${length_macos_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-macos-${VERSION}.zip", + "sha256": "${build_macos.sha}" + }, + "aix": { + "system": "aix", + "name": "o2server-aix-${VERSION}", + "fileName": "o2server-aix-${VERSION}.zip", + "fileSize": "${length_aix_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-aix-${VERSION}.zip", + "sha256": "${build_aix.sha}" + }, + "raspberrypi": { + "system": "raspberrypi", + "name": "o2server-raspberrypi-${VERSION}", + "fileName": "o2server-raspberrypi-${VERSION}.zip", + "fileSize": "${length_raspberrypi_mb}MB", + "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", + "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", + "updateTime": "${TODAY}", + "url": "/download/o2server-kylinos-phytium-${VERSION}.zip", + "sha256": "${build_kylinos_phytium.sha}" + }, + "jvm_windows": {} + } + ) + { + "title": "O2OA V${VERSION}", + "publishTime": "${TODAY}", + "windows": { + "system": "windows", + "name": "o2server-windows-${VERSION}", + "fileName": "o2server-windows-${VERSION}.zip", + "fileSize": "${length_win_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-windows-${VERSION}.zip", + "sha256": "${build_win.sha}" + }, + "linux": { + "system": "linux", + "name": "o2server-linux-${VERSION}", + "fileName": "o2server-linux-${VERSION}.zip", + "fileSize": "${length_linux_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-linux-${VERSION}.zip", + "sha256": "${build_linux.sha}" + }, + "macos": { + "system": "macos", + "name": "o2server-macos-${VERSION}", + "fileName": "o2server-macos-${VERSION}.zip", + "fileSize": "${length_macos_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-macos-${VERSION}.zip", + "sha256": "${build_macos.sha}" + }, + "aix": { + "system": "aix", + "name": "o2server-aix-${VERSION}", + "fileName": "o2server-aix-${VERSION}.zip", + "fileSize": "${length_aix_mb}MB", + "updateTime": "${TODAY}", + "url": "/download/o2server-aix-${VERSION}.zip", + "sha256": "${build_aix.sha}" + }, + "raspberrypi": { + "system": "raspberrypi", + "name": "o2server-raspberrypi-${VERSION}", + "fileName": "o2server-raspberrypi-${VERSION}.zip", + "fileSize": "${length_raspberrypi_mb}MB", + "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", + "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", + "updateTime": "${TODAY}", + "url": "/download/o2server-kylinos-phytium-${VERSION}.zip", + "sha256": "${build_kylinos_phytium.sha}" + }, + "source":{ + "name":"o2oa-master", + "updateTime":"${TODAY}", + "fileSize":"990MB", + "url":"https://github.com/o2oa/o2oa" + } + } + + + + + + + {"version":"${VERSION}","date":"${TODAY}"} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 758201a275090d2fbc0cd007be3423ba63e8fc9c..a64de0ed16af582ce65f7ddf55debecb51f9cfa6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,8 +16,8 @@ var gulp = require('gulp'), var fg = require('fast-glob'); var logger = require('gulp-logger'); -//var downloadHost = "download.o2oa.net"; -var downloadHost = "release.o2oa.net"; +var downloadHost = "download.o2oa.net"; +//var downloadHost = "release.o2oa.net"; var protocol = "http"; var commonUrl = "/build/commons.tar.gz"; diff --git a/package.json b/package.json index 619960d3b21ec6c568612dd580a39152aca8d96c..5a21ce3d1ae24c95f394bffff3cb2d54c5d61a9d 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,15 @@ "build:macos": "npm run clear && npm run preperation:macos && npm run build_parallel && npm run deploy:macos && npm run typeInfor", "build:neokylin": "npm run clear && npm run preperation:neokylin && npm run build_parallel && npm run deploy:neokylin && npm run typeInfor", "build:rpi": "npm run clear && npm run preperation:rpi && npm run build_parallel && npm run deploy:rpi && npm run typeInfor", - "test": "type welcome" + "build_ci": "npm run clear && npm run preperation && npm run build_parallel && npm run deploy && npm run typeInfor", + "build_ci:win": "npm run clear && npm run preperation:win && npm run build_parallel && npm run deploy:win && npm run typeInfor", + "build_ci:linux": "npm run clear && npm run preperation:linux && npm run build_parallel && npm run deploy:linux && npm run typeInfor", + "build_ci:aix": "npm run clear && npm run preperation:aix && npm run build_parallel && npm run deploy:aix && npm run typeInfor", + "build_ci:kylinos": "npm run clear && npm run preperation:kylinos && npm run build_parallel && npm run deploy:kylinos && npm run typeInfor", + "build_ci:macos": "npm run clear && npm run preperation:macos && npm run build_parallel && npm run deploy:macos && npm run typeInfor", + "build_ci:neokylin": "npm run clear && npm run preperation:neokylin && npm run build_parallel && npm run deploy:neokylin && npm run typeInfor", + "build_ci:rpi": "npm run clear && npm run preperation:rpi && npm run build_parallel && npm run deploy:rpi && npm run typeInfor", + "test": "type welcome" }, "repository": { "type": "git",