Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MoTianLun
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
NJ_MoTianLun
Commits
a6ed0870
Commit
a6ed0870
authored
Sep 21, 2020
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 删除已生成的zip包
parent
359fda1c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
3 deletions
+96
-3
.gitignore
.gitignore
+1
-0
package-lock.json
form/package-lock.json
+27
-2
builder.json
play/settings/builder.json
+54
-0
project.json
play/settings/project.json
+3
-1
build.js
publish/build.js
+11
-0
No files found.
.gitignore
View file @
a6ed0870
/publish/form
/publish/form
/form/publish/*.zip
/publish/play
/publish/play
/publish/node_modules
/publish/node_modules
/publish/publish/play
/publish/publish/play
...
...
form/package-lock.json
View file @
a6ed0870
...
@@ -2361,6 +2361,16 @@
...
@@ -2361,6 +2361,16 @@
"integrity"
:
"sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ=="
,
"integrity"
:
"sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ=="
,
"dev"
:
true
"dev"
:
true
},
},
"bindings"
:
{
"version"
:
"1.5.0"
,
"resolved"
:
"https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz"
,
"integrity"
:
"sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"file-uri-to-path"
:
"1.0.0"
}
},
"bl"
:
{
"bl"
:
{
"version"
:
"1.2.2"
,
"version"
:
"1.2.2"
,
"resolved"
:
"https://registry.npmjs.org/bl/-/bl-1.2.2.tgz"
,
"resolved"
:
"https://registry.npmjs.org/bl/-/bl-1.2.2.tgz"
,
...
@@ -7489,6 +7499,13 @@
...
@@ -7489,6 +7499,13 @@
"rimraf"
:
"^2.6.1"
"rimraf"
:
"^2.6.1"
}
}
},
},
"nan"
:
{
"version"
:
"2.14.1"
,
"resolved"
:
"https://registry.npmjs.org/nan/-/nan-2.14.1.tgz"
,
"integrity"
:
"sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw=="
,
"dev"
:
true
,
"optional"
:
true
},
"nanomatch"
:
{
"nanomatch"
:
{
"version"
:
"1.2.13"
,
"version"
:
"1.2.13"
,
"resolved"
:
"https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz"
,
"resolved"
:
"https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz"
,
...
@@ -12190,7 +12207,11 @@
...
@@ -12190,7 +12207,11 @@
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
,
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
,
"integrity"
:
"sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
,
"integrity"
:
"sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
"optional"
:
true
,
"requires"
:
{
"bindings"
:
"^1.5.0"
,
"nan"
:
"^2.12.1"
}
},
},
"is-binary-path"
:
{
"is-binary-path"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
...
@@ -12556,7 +12577,11 @@
...
@@ -12556,7 +12577,11 @@
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
,
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz"
,
"integrity"
:
"sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
,
"integrity"
:
"sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw=="
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
"optional"
:
true
,
"requires"
:
{
"bindings"
:
"^1.5.0"
,
"nan"
:
"^2.12.1"
}
},
},
"is-absolute-url"
:
{
"is-absolute-url"
:
{
"version"
:
"3.0.3"
,
"version"
:
"3.0.3"
,
...
...
play/settings/builder.json
0 → 100644
View file @
a6ed0870
{
"title"
:
"play"
,
"packageName"
:
"org.cocos2d.demo"
,
"startScene"
:
"57ea7c61-9b8b-498a-b024-c98ee9124beb"
,
"excludeScenes"
:
[],
"includeSDKBox"
:
false
,
"orientation"
:
{
"landscapeLeft"
:
true
,
"landscapeRight"
:
true
,
"portrait"
:
false
,
"upsideDown"
:
false
},
"webOrientation"
:
"auto"
,
"inlineSpriteFrames"
:
false
,
"inlineSpriteFrames_native"
:
true
,
"mainCompressionType"
:
"default"
,
"mainIsRemote"
:
false
,
"optimizeHotUpdate"
:
false
,
"md5Cache"
:
false
,
"nativeMd5Cache"
:
true
,
"encryptJs"
:
true
,
"xxteaKey"
:
"af95a0f7-a8da-4f"
,
"zipCompressJs"
:
true
,
"fb-instant-games"
:
{},
"android"
:
{
"REMOTE_SERVER_ROOT"
:
""
,
"packageName"
:
"org.cocos2d.demo"
},
"ios"
:
{
"REMOTE_SERVER_ROOT"
:
""
,
"packageName"
:
"org.cocos2d.demo"
},
"mac"
:
{
"REMOTE_SERVER_ROOT"
:
""
,
"height"
:
720
,
"packageName"
:
"org.cocos2d.demo"
,
"width"
:
1280
},
"win32"
:
{
"REMOTE_SERVER_ROOT"
:
""
,
"height"
:
720
,
"width"
:
1280
},
"android-instant"
:
{
"REMOTE_SERVER_ROOT"
:
""
,
"host"
:
""
,
"packageName"
:
"org.cocos2d.demo"
,
"pathPattern"
:
""
,
"recordPath"
:
""
,
"scheme"
:
"https"
,
"skipRecord"
:
false
},
"appBundle"
:
false
}
play/settings/project.json
View file @
a6ed0870
{}
{
"last-module-event-record-time"
:
1600677246969
}
publish/build.js
View file @
a6ed0870
...
@@ -38,7 +38,18 @@ async function copyDir(src, dst) {
...
@@ -38,7 +38,18 @@ async function copyDir(src, dst) {
});
});
}
}
async
function
deleteZips
()
{
const
fileList
=
fs
.
readdirSync
(
'
./publish
'
);
for
(
let
i
=
0
;
i
<
fileList
.
length
;
i
++
)
{
const
name
=
fileList
[
i
];
if
(
name
.
indexOf
(
'
.zip
'
)
!=
-
1
)
{
await
fs
.
unlinkSync
(
`./publish/
${
name
}
`
);
}
}
}
async
function
main
()
{
async
function
main
()
{
await
deleteZips
();
let
date
=
new
Date
();
let
date
=
new
Date
();
let
fileName
=
`Release_
${
date
.
getFullYear
()}${
fix2
(
date
.
getMonth
()
+
1
)}${
fix2
(
date
.
getDate
())}
`
;
let
fileName
=
`Release_
${
date
.
getFullYear
()}${
fix2
(
date
.
getMonth
()
+
1
)}${
fix2
(
date
.
getDate
())}
`
;
fileName
+=
`
${
fix2
(
date
.
getHours
())}
-
${
fix2
(
date
.
getMinutes
())}
-
${
fix2
(
date
.
getSeconds
())}
`
;
fileName
+=
`
${
fix2
(
date
.
getHours
())}
-
${
fix2
(
date
.
getMinutes
())}
-
${
fix2
(
date
.
getSeconds
())}
`
;
...
...
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