[android] added module

This commit is contained in:
2018-05-08 18:05:29 +03:00
parent 331d687f66
commit 4ed7fb3a02
4 changed files with 214 additions and 41 deletions

View File

@@ -85,7 +85,7 @@ class Sdk {
stream = stream.on('downloadProgress', (p) => bar.update(p.percent));
if (this.link.endsWith('.zip')) {
stream = stream.pipe(unzip.Parse()).on('entry', (entry) => {
const filePath = entry.path.split('/').slice(1).join(path.sep);
const filePath = entry.path.split('/').slice(strip).join(path.sep);
if (filePath.length > 0) {
if (entry.type === 'Directory') {
fse.ensureDirSync(path.join(this.path, path.normalize(filePath)));