[all] fixes for windows

This commit is contained in:
2019-09-03 20:56:23 +03:00
parent 414099bd67
commit 7fa0174a7b
11 changed files with 117 additions and 69 deletions

View File

@@ -4,6 +4,7 @@ const fse = require('fs-extra');
const os = require('os');
const through = require('through2');
const Sdk = require('./sdk');
const System = require('./system');
const run = require('../run/index');
const {TailVinyl} = require('./tail');
@@ -29,9 +30,9 @@ class FlashPlayer extends Sdk {
get link() {
const baseUrl = `https://fpdownload.macromedia.com/pub/flashplayer/updaters/${this.version}/`;
if (Sdk.System.isWindows) {
if (System.isWindows) {
return baseUrl + `flashplayer_${this.version}_sa${this.debug ? '_debug' : ''}.exe`;
} else if (Sdk.System.isLinux) {
} else if (System.isLinux) {
return baseUrl + `flash_player_sa_linux${this.debug ? '_debug' : ''}.x86_64.tar.gz`;
} else {
throw `Unsupported os '${os.type()}'`;