First commit

This commit is contained in:
2025-01-15 19:42:35 +01:00
committed by andreas
commit 6e1a5f9fe5
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;