func.copyExecFiles(function() { func.copySourceFiles(); func.zipSourceFiles(function() { func.makeExecuableFile(); done(); }); });
func.copyExecFiles(function() { func.copySourceFiles(folder_path); func.zipSourceFiles(function() { func.makeExecuableFile(); if (os.platform() == 'darwin') { var app_path = 'tmp-nw/node-webkit.app/Contents/Resources/app.nw'; fs.mkdir(app_path, function(err) { if(err && err.code !== 'EEXIST') throw err fs.copy('tmp-nw/index.html', path.join(app_path, 'index.html')); fs.copy('tmp-nw/package.html', path.join(app_path, 'package.html')); setTimeout(done, 3000); }); } else { setTimeout(function() { var child = cp.spawn(execPath, curDir); // [path.join(curDir, 'internal')]); child.on('exit', function() { temp_path = path.dirname(fs.readFileSync(path.join(curDir, 'tmp-nw','path.org'))).substring(8); done(); }); }, 3000); } }); });