Improved Macros + Libraries (WIP)

Co-Authored-By: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
This commit is contained in:
Ne_Eo
2024-04-09 18:32:57 +02:00
committed by ⍚~Nex
co-authored by ⍚~Nex
parent f9c74c5a2d
commit e068300cf1
18 changed files with 65 additions and 39 deletions
+3
View File
@@ -42,6 +42,9 @@ class Update {
case "git":
prettyPrint((lib.global == "true" ? "Globally installing" : "Locally installing") + ' "${lib.name}" from git url "${lib.url}"');
Sys.command('haxelib git ${lib.name} ${lib.url}${lib.ref != null ? ' ${lib.ref}' : ''}${globalism != null ? ' $globalism' : ''} --always');
case "custom":
Sys.command('haxelib dev ${lib.name} "./libraries/${lib.name}"');
default:
prettyPrint('Cannot resolve library of type "${lib.type}"');
}