Add support for rolling back to older Lime tools, after switching to local repository version
This commit is contained in:
@@ -1731,6 +1731,7 @@ class CommandLineTools {
|
|||||||
|
|
||||||
LogHelper.info ("", LogHelper.accentColor + "Requesting tools version " + getToolsVersion (haxelib.version) + "...\x1b[0m\n");
|
LogHelper.info ("", LogHelper.accentColor + "Requesting tools version " + getToolsVersion (haxelib.version) + "...\x1b[0m\n");
|
||||||
|
|
||||||
|
HaxelibHelper.pathOverrides.remove ("lime");
|
||||||
var path = HaxelibHelper.getPath (haxelib);
|
var path = HaxelibHelper.getPath (haxelib);
|
||||||
|
|
||||||
var args = Sys.args ();
|
var args = Sys.args ();
|
||||||
@@ -1748,15 +1749,16 @@ class CommandLineTools {
|
|||||||
var args = [ PathHelper.combine (path, "run.n") ].concat (args);
|
var args = [ PathHelper.combine (path, "run.n") ].concat (args);
|
||||||
args.push (workingDirectory);
|
args.push (workingDirectory);
|
||||||
|
|
||||||
//trace (args);
|
|
||||||
|
|
||||||
Sys.exit (Sys.command ("neko", args));
|
Sys.exit (Sys.command ("neko", args));
|
||||||
|
return null;
|
||||||
|
|
||||||
//var args = [ "run", "lime:" + haxelib.version ].concat (args);
|
//var args = [ "run", "lime:" + haxelib.version ].concat (args);
|
||||||
//Sys.exit (Sys.command ("haxelib", args));
|
//Sys.exit (Sys.command ("haxelib", args));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (Std.string (version) != Std.string (HaxelibHelper.getVersion (haxelib))) {
|
||||||
|
|
||||||
LogHelper.warn ("", LogHelper.accentColor + "Could not switch to requested tools version\x1b[0m");
|
LogHelper.warn ("", LogHelper.accentColor + "Could not switch to requested tools version\x1b[0m");
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1765,6 +1767,8 @@ class CommandLineTools {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (overrides.architectures.length > 0) {
|
if (overrides.architectures.length > 0) {
|
||||||
|
|
||||||
project.architectures = overrides.architectures;
|
project.architectures = overrides.architectures;
|
||||||
|
|||||||
Reference in New Issue
Block a user