Embed a custom copy of haxelib, fix 'haxelib path'

This commit is contained in:
Joshua Granick
2017-05-18 11:20:53 -07:00
parent 9d373c6b08
commit f4d1df57ee
22 changed files with 3943 additions and 30 deletions

View File

@@ -367,7 +367,7 @@ class PlatformSetup {
if (version != null && version.indexOf ("*") > -1) {
var regexp = new EReg ("^.+[0-9]+-[0-9]+-[0-9]+ +[0-9]+:[0-9]+:[0-9]+ +([a-z0-9.-]+) +", "gi");
var output = ProcessHelper.runProcess ("", "haxelib", [ "info", haxelib.name ]);
var output = HaxelibHelper.runProcess ("", [ "info", haxelib.name ]);
var lines = output.split ("\n");
var versions = new Array<Version> ();
@@ -410,7 +410,7 @@ class PlatformSetup {
}
ProcessHelper.runCommand ("", "haxelib", args);
HaxelibHelper.runCommand ("", args);
}
@@ -759,7 +759,7 @@ class PlatformSetup {
}
ProcessHelper.runCommand ("", "haxelib", [ "install", "air3" ], true, true);
HaxelibHelper.runCommand ("", [ "install", "air3" ], true, true);
}
@@ -1482,7 +1482,7 @@ class PlatformSetup {
var defines = new Map<String, Dynamic> ();
defines.set ("setup", 1);
var basePath = ProcessHelper.runProcess ("", "haxelib", [ "config" ]);
var basePath = HaxelibHelper.runProcess ("", [ "config" ]);
if (basePath != null) {
basePath = StringTools.trim (basePath.split ("\n")[0]);
@@ -1647,7 +1647,7 @@ class PlatformSetup {
writeConfig (defines.get ("LIME_CONFIG"), defines);
ProcessHelper.runCommand ("", "haxelib", [ "install", "cordova" ], true, true);
HaxelibHelper.runCommand ("", [ "install", "cordova" ], true, true);
}
@@ -2117,7 +2117,7 @@ class PlatformSetup {
public static function updateHaxelib (haxelib:Haxelib):Void {
var basePath = ProcessHelper.runProcess ("", "haxelib", [ "config" ]);
var basePath = HaxelibHelper.runProcess ("", [ "config" ]);
if (basePath != null) {
@@ -2129,7 +2129,7 @@ class PlatformSetup {
if (StringTools.startsWith (PathHelper.standardize (lib), PathHelper.standardize (basePath))) {
ProcessHelper.runCommand ("", "haxelib", [ "update", haxelib.name ]);
HaxelibHelper.runCommand ("", [ "update", haxelib.name ]);
} else {