someones going to hate me

This commit is contained in:
Yoshman29
2023-04-10 15:33:36 +02:00
parent 3f42b140cb
commit 4e19c51f91
2 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -14,11 +14,14 @@ class Update {
// install libs
switch(lib.type) {
case "haxelib":
prettyPrint('Installing "${lib.name}"...');
prettyPrint('Installing "${lib.name}"...');
Sys.command('haxelib install ${lib.name} ${lib.version != null ? " " + lib.version : " "}');
case "git":
prettyPrint('Installing "${lib.name}" from git url "${lib.url}"');
Sys.command('haxelib git ${lib.name} ${lib.url}');
if (lib.ref != null)
Sys.command('haxelib git ${lib.name} ${lib.url} ${lib.ref}');
else
Sys.command('haxelib git ${lib.name} ${lib.url}');
default:
prettyPrint('Cannot resolve library of type "${lib.type}"');
}