[all] fixes for windows
This commit is contained in:
4
haxetool/android.js
Normal file → Executable file
4
haxetool/android.js
Normal file → Executable file
@@ -2,8 +2,8 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const exec = require('./exec');
|
||||
const {StringWritable} = require('./tail');
|
||||
const System = require('./system');
|
||||
const Command = require('../run/command');
|
||||
|
||||
const through = require('through2');
|
||||
const Sdk = require('./sdk');
|
||||
const Env = require('./env');
|
||||
@@ -25,7 +25,7 @@ class Android extends Sdk {
|
||||
}
|
||||
|
||||
get link() {
|
||||
const system = Sdk.System.isWindows ? 'windows' : Sdk.System.isLinux ? 'linux' : null;
|
||||
const system = System.isWindows ? 'windows' : System.isLinux ? 'linux' : null;
|
||||
if (!system) throw 'Unsupported system';
|
||||
if (this.version.indexOf('.') > -1) {
|
||||
return `https://dl.google.com/android/repository/tools_r${this.version}-${system}.zip`;
|
||||
|
||||
Reference in New Issue
Block a user