[all] fixes for windows
This commit is contained in:
@@ -9,32 +9,6 @@ const progress = require('cli-progress');
|
||||
const fse = require('fs-extra');
|
||||
const Log = require('./log');
|
||||
|
||||
|
||||
class System {
|
||||
|
||||
static get isWindows() {
|
||||
return os.type() === 'Windows_NT';
|
||||
}
|
||||
|
||||
static get isLinux() {
|
||||
return os.type() === 'Linux';
|
||||
}
|
||||
|
||||
static get archInt() {
|
||||
if (os.arch() === 'ia32') return 32;
|
||||
if (os.arch() === 'x64') return 64;
|
||||
}
|
||||
|
||||
static get isArch32() {
|
||||
return this.archInt === 32;
|
||||
}
|
||||
|
||||
static get isArch64() {
|
||||
return this.archInt === 64;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Downloader {
|
||||
|
||||
static createProgressBar() {
|
||||
@@ -151,6 +125,5 @@ class Sdk {
|
||||
}
|
||||
|
||||
Sdk.Downloader = Downloader;
|
||||
Sdk.System = System;
|
||||
|
||||
module.exports = Sdk;
|
||||
|
||||
Reference in New Issue
Block a user