[flashplayer] update download link

This commit is contained in:
2018-04-27 17:44:44 +03:00
parent 22a371292f
commit 00d9ec5c0e
5 changed files with 58 additions and 92 deletions

View File

@@ -75,7 +75,7 @@ class Sdk {
throw "Not implemented";
}
prepare() {
prepare(strip=1) {
log(this.tag, `version: ${colors.magenta(this.version)}`);
if (this.prepared) {
@@ -99,7 +99,7 @@ class Sdk {
}
});
} else if (this.link.endsWith('tar.gz')) {
stream = stream.pipe(tar.x({C: this.path, strip: 1}));
stream = stream.pipe(tar.x({C: this.path, strip: strip}));
} else {
stream = stream.pipe(fs.createWriteStream(this.path));
}