update readme

This commit is contained in:
Yoshman29
2023-01-07 00:33:04 +01:00
parent a6aa350e9c
commit f6582b73c3
3 changed files with 11 additions and 7 deletions
+6 -4
View File
@@ -9,16 +9,18 @@ class Update {
FileSystem.createDirectory('.haxelib');
var json:Array<Library> = Json.parse(File.getContent('./hmm.json')).dependencies;
prettyPrint("Installing libraries...");
prettyPrint("Preparing installation...");
for(lib in json) {
// install lib.
// install libs
switch(lib.type) {
case "haxelib":
prettyPrint('Installing haxelib ${lib.name}...');
prettyPrint('Installing "${lib.name}"...');
Sys.command('haxelib install ${lib.name}');
case "git":
prettyPrint('Installing ${lib.name} from git url ${lib.url}');
prettyPrint('Installing "${lib.name}" from git url "${lib.url}"');
Sys.command('haxelib git ${lib.name} ${lib.url}');
default:
prettyPrint('Cannot resolve library of type "${lib.type}"');
}
}
}