Commit 4b2299c8 authored by liujiaxin's avatar liujiaxin

test: buildCocos

parent 9b303537
...@@ -61,7 +61,7 @@ const buildCocos = function (args) { ...@@ -61,7 +61,7 @@ const buildCocos = function (args) {
const buffer = spawn( const buffer = spawn(
creatorBasePath, creatorBasePath,
args, args,
{ cwd: '.' } { cwd: '.',spawn: true, env: { ...process.env, NODE_ENV: 'test' } }
); );
buffer.stdout.on('data', (data) => { buffer.stdout.on('data', (data) => {
...@@ -119,7 +119,8 @@ async function buildAndroidBundle() { ...@@ -119,7 +119,8 @@ async function buildAndroidBundle() {
} }
async function buildIosBundle() { async function buildIosBundle() {
const args = ['--path', './', '--build', "platform=ios;debug=false;md5Cache=true;buildPath=build_ios;encryptJs=true;xxteaKey=6bbfce23-28b4-4a;zipCompressJs=true", '--force']; // const args = ['--path', './', '--build', "platform=ios;debug=false;md5Cache=true;buildPath=build_ios;encryptJs=true;xxteaKey=6bbfce23-28b4-4a;zipCompressJs=true", '--force'];
const args = ['--path', './', '--build', "platform=ios;debug=false;md5Cache=true;buildPath=build_ios;zipCompressJs=true", '--force'];
await buildCocos(args); await buildCocos(args);
} }
......
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