zby-nova-upload
v0.0.9
Published
zby nova upload
Downloads
7
Readme
started
install
npm install zby-nova-upload
config.json
{
"region" : "your region",
"accessKeyId" : "your access key id",
"accessKeySecret" : "your access secret",
"bucket" : "your bucket",
"ossPath" : "your oss nova courses path",
"ossHost" : "your oss domain"
}
api
uploadNovaZip
'use strict';
var zbyNovaUpload = require('zby-nova-upload');
var test = async function(){
var sourceNovaZipPath = 'd:/test/course/2018032003-1.7.2.zip';
var cocosFileFolder = 'd:/test/nova';
var ossConfig = require('./config.json');
var s = await zbyNovaUpload.uploadNovaZip(sourceNovaZipPath, cocosFileFolder, ossConfig);
console.log(s);
};
test();
also in cli
npm install -g zby-nova-upload
and put ali-oss config.json file into somewhere
znova upload "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json"
znova upload "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json" -d
or
znova u "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json"
znova u "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json" -d
or
znova | znova -h for help
version
0.0.4.20200806
- move to gitlab
0.0.3.20190218
- update [email protected]
0.0.2.20190122
- update [email protected]
- add dev mode
- oss config bug fix
0.0.1.20190117
- nova upload ok
- add ?cocos=version
- rm temp folder
- update qiao.util.all
- update check zip method
- add znova
- 取消注释