added platform tools download to build as well as generating compiled code

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent e0f647c7eb
commit 1996fa3c6d
9 changed files with 84 additions and 17 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
const https = require('https');
const http = require('http');
const _fs = require('fs');
const { basename } = require('path');
const Url = require('url');
@@ -10,7 +11,7 @@ module.exports = function(url, path, progress) {
if (!path) {
path = basename(uri.path);
}
const file = fs.createWriteStream(path);
const file = _fs.createWriteStream(path);
function get(url, callback) {
let request = (uri.protocol === 'https:' ? https : http).get(url, function(response) {