First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
commit 8204c6b556
18475 changed files with 3309357 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
var Cache = require(__dirname + '/cache');
var vars = require(__dirname + '/vars');
var os = require('os');
var DownloadHaxelibTask = function (version) {
this.haxelibVersion = version;
};
DownloadHaxelibTask.prototype.run = function(executeNextStep) {
console.log("Getting Haxelib " + this.haxelibVersion );
var filename = this.haxelibVersion + ".tar.gz";
var url = "https://github.com/HaxeFoundation/haxelib/archive/" + filename;
var cache = new Cache();
cache.download( url , vars.haxelib.dir, executeNextStep );
};
module.exports.DownloadHaxelibTask = DownloadHaxelibTask;