[adnroid] download link fix

This commit is contained in:
2018-05-10 23:11:03 +03:00
parent 25913a8f42
commit e360726786

View File

@@ -23,7 +23,7 @@ class Android extends Sdk {
get link() {
const system = Sdk.System.isWindows ? 'windows' : Sdk.System.isLinux ? 'linux' : null;
if (!system) throw 'Unsupported system';
if (this.version.indexOf('.') === -1) {
if (this.version.indexOf('.') > -1) {
return `https://dl.google.com/android/repository/tools_r${this.version}-${system}.zip`;
} else {
return `https://dl.google.com/android/repository/sdk-tools-${system}-${this.version}.zip`;