Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt08_flst
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
ngt08_flst
Commits
1702ae6d
Commit
1702ae6d
authored
Nov 22, 2021
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除编译的中间文件
parent
3b5b60c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
build_step_1.js
bin/build_step_1.js
+1
-1
build_step_2.js
bin/build_step_2.js
+1
-1
build_step_3.js
bin/build_step_3.js
+1
-1
build_step_4.js
bin/build_step_4.js
+5
-1
No files found.
bin/build_step_1.js
View file @
1702ae6d
...
...
@@ -8,7 +8,7 @@ async function main() {
const
data
=
await
fs
.
readFileSync
(
'
../play/index.html
'
);
await
fs
.
writeFileSync
(
'
../dist/play/index.html
'
,
data
);
await
removeDir
(
'
../play/build
/web-desktop
'
);
await
removeDir
(
'
../play/build
'
);
const
path
=
'
../play/assets
'
...
...
bin/build_step_2.js
View file @
1702ae6d
...
...
@@ -3,7 +3,7 @@ const { removeDir, copyDir } = require('./utils');
async
function
main
()
{
await
removeDir
(
'
../dist/ios
'
);
await
copyDir
(
'
../play/build_ios/jsb-link/remote
'
,
'
../dist/ios
'
);
await
removeDir
(
'
../play/build_ios
/jsb-link
'
);
await
removeDir
(
'
../play/build_ios
'
);
}
main
();
\ No newline at end of file
bin/build_step_3.js
View file @
1702ae6d
...
...
@@ -3,7 +3,7 @@ const { removeDir, copyDir } = require('./utils');
async
function
main
()
{
await
removeDir
(
'
../dist/android
'
);
await
copyDir
(
'
../play/build_android/jsb-link/remote
'
,
'
../dist/android
'
);
await
removeDir
(
'
../play/build_android
/jsb-link
'
);
await
removeDir
(
'
../play/build_android
'
);
}
main
();
\ No newline at end of file
bin/build_step_4.js
View file @
1702ae6d
...
...
@@ -23,10 +23,14 @@ async function main() {
tarStream
.
addEntry
(
'
../dist/config.json
'
);
const
destStream
=
fs
.
createWriteStream
(
`../publish/
${
getReleaseFileName
()}
.zip`
);
tarStream
.
pipe
(
destStream
);
console
.
log
(
'
打包完成!
'
);
// 删掉发布打包的多余文件
await
removeDir
(
'
../play/library
'
);
await
removeDir
(
'
../play/local
'
);
await
removeDir
(
'
../play/temp
'
);
}
async
function
getBundleName
(
path
)
{
...
...
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