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
+4 -2
View File
@@ -17,6 +17,8 @@ Also, `lime test windows` uses the source assets folder instead of the export on
- Credits to Smokey555 for the fancy Animate Atlas code (might be replaced soon)
## HOW TO BUILD
- Install the required libraries as told in the original Funkin' repo (with latest Haxe!)
- Run `update.bat` to install all required additional libraries (flixel fork, hscript fork...)
- Install the [latest version of Haxe](https://haxe.org/download/)
- Install everything mentioned here for your platform: [`Windows`](https://lime.openfl.org/docs/advanced-setup/windows/), [`Linux`](https://lime.openfl.org/docs/advanced-setup/linux/), [`MacOS`](https://lime.openfl.org/docs/advanced-setup/macos/)
- Run `update.bat` to install/update all libraries needed for the engine.
- If you're using another operating system, execute `haxe -cp update -D analyzer-optimize -main Update --interp` in a terminal.
- Run `lime test windows` to compile the game (may take a long time)
+1 -1
View File
@@ -1 +1 @@
1917
1918
+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}"');
}
}
}