First commit

This commit is contained in:
2025-01-15 19:28:55 +01:00
committed by andreas
commit 5d4c4a054e
18475 changed files with 3309357 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
var haxeUrl = require(__dirname + '/haxe-url');
var Cache = require(__dirname + '/cache');
var vars = require(__dirname + '/vars');
var os = require('os');
var DownloadHaxeTask = function (version) {
this.haxeVersion = version;
};
DownloadHaxeTask.prototype.run = function(executeNextStep) {
console.log("Getting Haxe " + this.haxeVersion + " for " + os.platform() );
var url = haxeUrl(os.platform(), os.arch(), this.haxeVersion, false);
var cache = new Cache();
cache.download( url , vars.haxe.dir, executeNextStep );
};
module.exports.DownloadHaxeTask = DownloadHaxeTask;