[flashplayer] update download link
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user