Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-cli
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
game-cli
Commits
ba00cb05
Commit
ba00cb05
authored
Sep 28, 2018
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
5ab92118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
game-cli-publish.js
bin/game-cli-publish.js
+7
-0
game-cli-upload.js
bin/game-cli-upload.js
+1
-0
No files found.
bin/game-cli-publish.js
View file @
ba00cb05
...
@@ -2,11 +2,18 @@ const program = require('commander');
...
@@ -2,11 +2,18 @@ const program = require('commander');
const
{
exit
,
executeBuildProcess
,
updateProjectConfig
}
=
require
(
'./tools'
);
const
{
exit
,
executeBuildProcess
,
updateProjectConfig
}
=
require
(
'./tools'
);
program
program
.
option
(
'-u, --upload-auto'
,
'Auto upload after publish success'
,
false
)
.
parse
(
process
.
argv
);
.
parse
(
process
.
argv
);
async
function
execute
()
{
async
function
execute
()
{
const
version
=
await
executeBuildProcess
(
'publish'
);
const
version
=
await
executeBuildProcess
(
'publish'
);
//console.log('detected version:', version);
updateProjectConfig
(
'version'
,
version
);
updateProjectConfig
(
'version'
,
version
);
if
(
program
.
uploadAuto
){
console
.
log
(
'
\
nAuto uploading...'
);
require
(
'./game-cli-upload'
);
}
}
}
execute
().
catch
(
e
=>
{
execute
().
catch
(
e
=>
{
...
...
bin/game-cli-upload.js
View file @
ba00cb05
...
@@ -18,6 +18,7 @@ async function execute() {
...
@@ -18,6 +18,7 @@ async function execute() {
}
}
if
(
version
){
if
(
version
){
console
.
log
(
'upload version:'
,
version
);
if
(
remotePath
){
if
(
remotePath
){
try
{
try
{
await
ossUpload
({
await
ossUpload
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment