Commit ba00cb05 authored by rockyl's avatar rockyl

更新

parent 5ab92118
......@@ -2,11 +2,18 @@ const program = require('commander');
const {exit, executeBuildProcess, updateProjectConfig} = require('./tools');
program
.option('-u, --upload-auto', 'Auto upload after publish success', false)
.parse(process.argv);
async function execute() {
const version = await executeBuildProcess('publish');
//console.log('detected version:', version);
updateProjectConfig('version', version);
if(program.uploadAuto){
console.log('\nAuto uploading...');
require('./game-cli-upload');
}
}
execute().catch(e => {
......
......@@ -18,6 +18,7 @@ async function execute() {
}
if(version){
console.log('upload version:', version);
if(remotePath){
try {
await ossUpload({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment