feat(android): up android sdk version

This commit is contained in:
2021-05-24 22:02:00 +03:00
parent e0eddbcab5
commit 715f6807d8
5 changed files with 41 additions and 23 deletions

View File

@@ -55,6 +55,11 @@ class Downloader {
if (entry.type === 'Directory') {
fse.ensureDirSync(path.join(dest, path.normalize(filePath)));
} else if (entry.type === 'File') {
const fullFilePath = path.join(dest, path.normalize(filePath));
const dirPath = path.dirname(fullFilePath);
if (!fs.existsSync(dirPath)) {
fse.ensureDirSync(dirPath);
}
entry.pipe(fs.createWriteStream(path.join(dest, path.normalize(filePath)), {
// ToDo: zip entry file mode?
mode: executable ? 0o755 : undefined,